show contacts name in non anonymous mucs. fixes #1213
This commit is contained in:
		
							parent
							
								
									bef731a3c8
								
							
						
					
					
						commit
						ef1429c9a6
					
				| @ -221,10 +221,14 @@ public class UIHelper { | ||||
| 
 | ||||
| 	public static String getMessageDisplayName(final Message message) { | ||||
| 		if (message.getStatus() == Message.STATUS_RECEIVED) { | ||||
| 			final Contact contact = message.getContact(); | ||||
| 			if (message.getConversation().getMode() == Conversation.MODE_MULTI) { | ||||
| 				return getDisplayedMucCounterpart(message.getCounterpart()); | ||||
| 				if (contact != null) { | ||||
| 					return contact.getDisplayName(); | ||||
| 				} else { | ||||
| 					return getDisplayedMucCounterpart(message.getCounterpart()); | ||||
| 				} | ||||
| 			} else { | ||||
| 				final Contact contact = message.getContact(); | ||||
| 				return contact != null ? contact.getDisplayName() : ""; | ||||
| 			} | ||||
| 		} else { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch