aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-08-30 17:11:20 +0200
committerfiaxh <git@lightrise.org>2019-08-30 17:11:20 +0200
commit016ab2c19b0760792f3ea8f00bfc46b49500f96a (patch)
tree834bbe4868ab5840a8e47f4d790a9ac30538768c /libdino
parent9f613d5812f1893481f06d3806ef4f03048df2b8 (diff)
downloaddino-016ab2c19b0760792f3ea8f00bfc46b49500f96a.tar.gz
dino-016ab2c19b0760792f3ea8f00bfc46b49500f96a.zip
Fix message type of chat state notification
fixes #607
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/chat_interaction.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/chat_interaction.vala b/libdino/src/service/chat_interaction.vala
index 9fc471fb..de352e95 100644
--- a/libdino/src/service/chat_interaction.vala
+++ b/libdino/src/service/chat_interaction.vala
@@ -180,7 +180,7 @@ public class ChatInteraction : StreamInteractionModule, Object {
private void send_chat_state_notification(Conversation conversation, string state) {
XmppStream? stream = stream_interactor.get_stream(conversation.account);
if (stream != null && conversation.get_send_typing_setting(stream_interactor) == Conversation.Setting.ON) {
- string message_type = conversation.type_ == Conversation.Type.GROUPCHAT ? Xmpp.MessageStanza.TYPE_GROUPCHAT : Xmpp.MessageStanza.TYPE_GROUPCHAT;
+ string message_type = conversation.type_ == Conversation.Type.GROUPCHAT ? Xmpp.MessageStanza.TYPE_GROUPCHAT : Xmpp.MessageStanza.TYPE_CHAT;
stream.get_module(Xep.ChatStateNotifications.Module.IDENTITY).send_state(stream, conversation.counterpart, message_type, state);
}
}