aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-08-17 22:24:41 +0200
committerfiaxh <git@lightrise.org>2021-08-17 22:32:33 +0200
commitc77d80d7b59cd28a9e730f9d1309bc6096d35fed (patch)
tree2765328d9abd587251d9ef1aed90496ec68deeea /main/src/ui
parent447464f4d1ac0c184764f103ac9e51f7ff2dce91 (diff)
downloaddino-c77d80d7b59cd28a9e730f9d1309bc6096d35fed.tar.gz
dino-c77d80d7b59cd28a9e730f9d1309bc6096d35fed.zip
Fix avatars not changing to greyscale when contact goes offline
Diffstat (limited to 'main/src/ui')
-rw-r--r--main/src/ui/avatar_image.vala2
1 files changed, 2 insertions, 0 deletions
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);