From c44489214e040f48042d27254d4c18a78e343049 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 22 Nov 2018 00:50:56 +0100 Subject: ConversationRow: Update nick_label in case of FileItems --- main/src/ui/conversation_selector/conversation_row.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/src/ui/conversation_selector/conversation_row.vala b/main/src/ui/conversation_selector/conversation_row.vala index 8157fde8..6327e07d 100644 --- a/main/src/ui/conversation_selector/conversation_row.vala +++ b/main/src/ui/conversation_selector/conversation_row.vala @@ -137,7 +137,11 @@ public class ConversationRow : ListBoxRow { FileItem file_item = last_content_item as FileItem; FileTransfer transfer = file_item.file_transfer; - if (conversation.type_ != Conversation.Type.GROUPCHAT) { + if (conversation.type_ == Conversation.Type.GROUPCHAT) { + // TODO properly display nick for oneself + string nick = transfer.direction == Message.DIRECTION_SENT ? _("Me") : Util.get_display_name(stream_interactor, file_item.file_transfer.counterpart, conversation.account); + nick_label.label = nick + ": "; + } else { nick_label.label = transfer.direction == Message.DIRECTION_SENT ? _("Me") + ": " : ""; } -- cgit v1.2.3-70-g09d2