aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-12-23 21:53:45 +0100
committerfiaxh <git@lightrise.org>2019-12-24 01:46:01 +0100
commitf58119f25e42da7a21e2c4324b305cc8c5fb6760 (patch)
treedd90ba816025d07ebdcfe818538b8d0d8996d186 /libdino/src/service
parent1d1682a357b6ab1ac709160560b43c23ee7163b5 (diff)
downloaddino-f58119f25e42da7a21e2c4324b305cc8c5fb6760.tar.gz
dino-f58119f25e42da7a21e2c4324b305cc8c5fb6760.zip
Don't show own typing notifications (other devices)
fixes #669
Diffstat (limited to 'libdino/src/service')
-rw-r--r--libdino/src/service/counterpart_interaction_manager.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdino/src/service/counterpart_interaction_manager.vala b/libdino/src/service/counterpart_interaction_manager.vala
index e22ecb53..6ee55ae4 100644
--- a/libdino/src/service/counterpart_interaction_manager.vala
+++ b/libdino/src/service/counterpart_interaction_manager.vala
@@ -48,6 +48,9 @@ public class CounterpartInteractionManager : StreamInteractionModule, Object {
}
private async void on_chat_state_received(Account account, Jid jid, string state, MessageStanza stanza) {
+ // Don't show our own (other devices) typing notification
+ if (jid.equals_bare(account.bare_jid)) return;
+
Message message = yield stream_interactor.get_module(MessageProcessor.IDENTITY).parse_message_stanza(account, stanza);
Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation_for_message(message);
if (conversation == null) return;