From 1df856969f173fdfde9a1a26cbb4b30a900fafbb Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 12 Sep 2011 17:17:49 +0200 Subject: The active chat state is not sent anymore with a message when being xa or away. --- src/tabs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index a6e871f0..a3ef712d 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -620,6 +620,7 @@ class MucTab(ChatTab): self.core.room_error(res, self.get_name()) def command_say(self, line): + needed = 'inactive' if self.core.status.show in ('xa', 'away') else 'active' msg = self.core.xmpp.make_message(self.get_name()) msg['type'] = 'groupchat' if line.find('\x19') == -1: @@ -628,9 +629,10 @@ class MucTab(ChatTab): msg['body'] = xhtml.clean_text(line) msg['xhtml_im'] = xhtml.poezio_colors_to_html(line) if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates is not False: - msg['chat_state'] = 'active' + msg['chat_state'] = needed self.cancel_paused_delay() msg.send() + self.chat_state = needed def command_ignore(self, arg): """ -- cgit v1.2.3