ConversationRow: Update nick_label in case of FileItems

This commit is contained in:
fiaxh 2018-11-22 00:50:56 +01:00
parent 45d89326b8
commit c44489214e

View file

@ -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") + ": " : "";
}