aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/occupant_menu
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-01-24 18:59:46 +0100
committerMarvin W <git@larma.de>2023-03-05 16:47:46 +0100
commitdb3b0d5f233ee3587ae54f8f035222cb098b11dd (patch)
tree587e5b21a92c8482b25338556d3ef98c764c8ebb /main/src/ui/occupant_menu
parentd81829652057d63b9971b9217996438ee41788ca (diff)
downloaddino-db3b0d5f233ee3587ae54f8f035222cb098b11dd.tar.gz
dino-db3b0d5f233ee3587ae54f8f035222cb098b11dd.zip
New Avatar UI
Diffstat (limited to 'main/src/ui/occupant_menu')
-rw-r--r--main/src/ui/occupant_menu/list_row.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/ui/occupant_menu/list_row.vala b/main/src/ui/occupant_menu/list_row.vala
index 6b43fe7f..476d9e61 100644
--- a/main/src/ui/occupant_menu/list_row.vala
+++ b/main/src/ui/occupant_menu/list_row.vala
@@ -8,7 +8,7 @@ namespace Dino.Ui.OccupantMenu {
public class ListRow : Object {
private Grid main_grid;
- private AvatarImage image;
+ private AvatarPicture picture;
public Label name_label;
public Conversation? conversation;
@@ -17,7 +17,7 @@ public class ListRow : Object {
construct {
Builder builder = new Builder.from_resource("/im/dino/Dino/occupant_list_item.ui");
main_grid = (Grid) builder.get_object("main_grid");
- image = (AvatarImage) builder.get_object("image");
+ picture = (AvatarPicture) builder.get_object("picture");
name_label = (Label) builder.get_object("name_label");
}
@@ -26,12 +26,12 @@ public class ListRow : Object {
this.jid = jid;
name_label.label = Util.get_participant_display_name(stream_interactor, conversation, jid);
- image.set_conversation_participant(stream_interactor, conversation, jid);
+ picture.model = new ViewModel.CompatAvatarPictureModel(stream_interactor).add_participant(conversation, jid);
}
public ListRow.label(string c, string text) {
name_label.label = text;
- image.set_text(c);
+ picture.model = new ViewModel.CompatAvatarPictureModel(null).add(c);
}
public Widget get_widget() {