From c77d80d7b59cd28a9e730f9d1309bc6096d35fed Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 17 Aug 2021 22:24:41 +0200 Subject: Fix avatars not changing to greyscale when contact goes offline --- main/src/ui/avatar_image.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main') diff --git a/main/src/ui/avatar_image.vala b/main/src/ui/avatar_image.vala index e9aa3e71..81aa3ce1 100644 --- a/main/src/ui/avatar_image.vala +++ b/main/src/ui/avatar_image.vala @@ -152,6 +152,7 @@ public class AvatarImage : Misc { private void disconnect_stream_interactor() { if (stream_interactor != null) { presence_manager.show_received.disconnect(on_show_received); + presence_manager.received_offline_presence.disconnect(on_show_received); avatar_manager.received_avatar.disconnect(on_received_avatar); stream_interactor.connection_manager.connection_state_changed.disconnect(on_connection_changed); stream_interactor.get_module(RosterManager.IDENTITY).updated_roster_item.disconnect(on_roster_updated); @@ -234,6 +235,7 @@ public class AvatarImage : Misc { if (this.stream_interactor != stream_interactor) { this.stream_interactor = stream_interactor; presence_manager.show_received.connect(on_show_received); + presence_manager.received_offline_presence.connect(on_show_received); stream_interactor.get_module(AvatarManager.IDENTITY).received_avatar.connect(on_received_avatar); stream_interactor.connection_manager.connection_state_changed.connect(on_connection_changed); stream_interactor.get_module(RosterManager.IDENTITY).updated_roster_item.connect(on_roster_updated); -- cgit v1.2.3-70-g09d2