aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/jabber/message.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/jabber/message.c b/protocols/jabber/message.c
index 1b47693b..7c40f3e0 100644
--- a/protocols/jabber/message.c
+++ b/protocols/jabber/message.c
@@ -141,10 +141,13 @@ xt_status jabber_pkt_message(struct xt_node *node, gpointer data)
bud->flags |= JBFLAG_DOES_XEP85;
imcb_buddy_typing(ic, from, OPT_TYPING);
}
- /* No need to send a "stopped typing" signal when there's a message. */
- else if (xt_find_node(node->children, "active") && (body == NULL)) {
+ else if (xt_find_node(node->children, "active")) {
bud->flags |= JBFLAG_DOES_XEP85;
- imcb_buddy_typing(ic, from, 0);
+
+ /* No need to send a "stopped typing" signal when there's a message. */
+ if (body == NULL) {
+ imcb_buddy_typing(ic, from, 0);
+ }
} else if (xt_find_node(node->children, "paused")) {
bud->flags |= JBFLAG_DOES_XEP85;
imcb_buddy_typing(ic, from, OPT_THINKING);