diff options
author | Marvin W <git@larma.de> | 2019-10-18 16:52:29 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-10-18 16:52:29 +0200 |
commit | e330e60f83e6e46bbc3d320711709f2448b802e7 (patch) | |
tree | 9caf36bae3326e711fe113336985e80e7218b3d5 /main/src/ui/occupant_menu/list_row.vala | |
parent | de3af0ae24b70ccb7670fa236076c061316f03cb (diff) | |
download | dino-e330e60f83e6e46bbc3d320711709f2448b802e7.tar.gz dino-e330e60f83e6e46bbc3d320711709f2448b802e7.zip |
Base avatars and names on conversation, not JID.
Fixes #598
Diffstat (limited to 'main/src/ui/occupant_menu/list_row.vala')
-rw-r--r-- | main/src/ui/occupant_menu/list_row.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/ui/occupant_menu/list_row.vala b/main/src/ui/occupant_menu/list_row.vala index 0827ae35..92fff32f 100644 --- a/main/src/ui/occupant_menu/list_row.vala +++ b/main/src/ui/occupant_menu/list_row.vala @@ -11,15 +11,15 @@ public class ListRow : ListBoxRow { [GtkChild] private AvatarImage image; [GtkChild] public Label name_label; - public Account? account; + public Conversation? conversation; public Jid? jid; - public ListRow(StreamInteractor stream_interactor, Account account, Jid jid) { - this.account = account; + public ListRow(StreamInteractor stream_interactor, Conversation conversation, Jid jid) { + this.conversation = conversation; this.jid = jid; - name_label.label = Util.get_display_name(stream_interactor, jid, account); - image.set_jid(stream_interactor, jid, account); + name_label.label = Util.get_participant_display_name(stream_interactor, conversation, jid); + image.set_conversation_participant(stream_interactor, conversation, jid); } public ListRow.label(string c, string text) { |