diff options
author | fiaxh <git@lightrise.org> | 2021-03-19 23:09:56 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-03-21 12:41:39 +0100 |
commit | 0f46facecd558786631c2ad4cf66d27331f16a86 (patch) | |
tree | 74ba0d120dabbaf55e204cca5355022f3c3ba60e /main/src/ui/conversation_selector | |
parent | cdb4d77259e6c361aaca64a483a43d7441f4803d (diff) | |
download | dino-0f46facecd558786631c2ad4cf66d27331f16a86.tar.gz dino-0f46facecd558786631c2ad4cf66d27331f16a86.zip |
Add UI for audio/video calls
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r-- | main/src/ui/conversation_selector/conversation_selector_row.vala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala index cd513d13..6f181a64 100644 --- a/main/src/ui/conversation_selector/conversation_selector_row.vala +++ b/main/src/ui/conversation_selector/conversation_selector_row.vala @@ -198,6 +198,14 @@ public class ConversationSelectorRow : ListBoxRow { message_label.label = (file_is_image ? _("Image received") : _("File received") ); } break; + case CallItem.TYPE: + CallItem call_item = (CallItem) last_content_item; + Call call = call_item.call; + + nick_label.label = call.direction == Call.DIRECTION_OUTGOING ? _("Me") + ": " : ""; + message_label.attributes.insert(attr_style_new(Pango.Style.ITALIC)); + message_label.label = call.direction == Call.DIRECTION_OUTGOING ? _("Outgoing call") : _("Incoming call"); + break; } nick_label.visible = true; message_label.visible = true; |