diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2024-02-17 21:24:05 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2024-02-17 21:24:05 +0100 |
commit | a8d1cd08bb4db528093a6bc4d64cb2ea34bf96c8 (patch) | |
tree | 49c96be1a459efd07414c6ba0515d1f653ed1817 /src/ui/message.c | |
parent | 8b95c672e8d9aabab53f09d41eaeed9521ce4b57 (diff) | |
download | messenger-gtk-a8d1cd08bb4db528093a6bc4d64cb2ea34bf96c8.tar.gz messenger-gtk-a8d1cd08bb4db528093a6bc4d64cb2ea34bf96c8.zip |
Implement messages switching visibility depending on the senders block-state
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/message.c')
-rw-r--r-- | src/ui/message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/message.c b/src/ui/message.c index 57668dc..9736ad1 100644 --- a/src/ui/message.c +++ b/src/ui/message.c | |||
@@ -766,12 +766,14 @@ ui_message_set_contact(UI_MESSAGE_Handle *handle, | |||
766 | { | 766 | { |
767 | contact_remove_name_avatar_from_info(handle->contact, handle->sender_avatar); | 767 | contact_remove_name_avatar_from_info(handle->contact, handle->sender_avatar); |
768 | contact_remove_name_label_from_info(handle->contact, handle->sender_label); | 768 | contact_remove_name_label_from_info(handle->contact, handle->sender_label); |
769 | contact_remove_visible_widget_to_info(handle->contact, handle->message_box); | ||
769 | } | 770 | } |
770 | 771 | ||
771 | if (contact) | 772 | if (contact) |
772 | { | 773 | { |
773 | contact_add_name_avatar_to_info(contact, handle->sender_avatar); | 774 | contact_add_name_avatar_to_info(contact, handle->sender_avatar); |
774 | contact_add_name_label_to_info(contact, handle->sender_label); | 775 | contact_add_name_label_to_info(contact, handle->sender_label); |
776 | contact_add_visible_widget_to_info(contact, handle->message_box); | ||
775 | } | 777 | } |
776 | 778 | ||
777 | handle->contact = contact; | 779 | handle->contact = contact; |