aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-11-22 00:50:56 +0100
committerfiaxh <git@mx.ax.lt>2018-11-21 18:01:54 -0600
commitc44489214e040f48042d27254d4c18a78e343049 (patch)
tree0763fa7d572767abaa0ef4767e7c61186f521e13 /main/src/ui
parent45d89326b8bf9cd8eb398a87a8e572630d911f97 (diff)
downloaddino-c44489214e040f48042d27254d4c18a78e343049.tar.gz
dino-c44489214e040f48042d27254d4c18a78e343049.zip
ConversationRow: Update nick_label in case of FileItems
Diffstat (limited to 'main/src/ui')
-rw-r--r--main/src/ui/conversation_selector/conversation_row.vala6
1 files changed, 5 insertions, 1 deletions
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") + ": " : "";
}