| 347 | | #('MSG', account, (contact, msg, time, encrypted, msg_type, subject)) |
| | 347 | #('MSG', account, (contact, msg, time, encrypted, msg_type, subject, chatstate_tag)) |
| | 410 | if self.windows[account]['chats'].has_key(jid): |
| | 411 | chat_win = self.windows[account]['chats'][jid] |
| | 412 | # chatstates - display jep85 events in window |
| | 413 | if chatstate_tag != None: |
| | 414 | if chat_win.chatstates[jid] == 'ask': |
| | 415 | chat_win.chatstates[jid] = 'active' |
| | 416 | chat_win.print_conversation(jid + ' is now ' + chatstate_tag, jid, 'status', tim = array[2]) |
| | 417 | else: |
| | 418 | # got no valid jep85 answer, peer does not support it |
| | 419 | chat_win.chatstates[jid] = -1 |
| | 420 | |