plugins: do not fire conversation_msg event on own messages
This commit is contained in:
parent
65b8046fe0
commit
47ce315492
1 changed files with 7 additions and 7 deletions
|
@ -380,15 +380,15 @@ class HandlerCore:
|
|||
tabs.DynamicConversationTab) and conv_jid.resource:
|
||||
conversation.lock(conv_jid.resource)
|
||||
|
||||
if not own and not conversation.nick:
|
||||
conversation.nick = remote_nick
|
||||
elif not own:
|
||||
remote_nick = conversation.get_nick()
|
||||
|
||||
if not own:
|
||||
conversation.last_remote_message = datetime.now()
|
||||
if not conversation.nick:
|
||||
conversation.nick = remote_nick
|
||||
else:
|
||||
remote_nick = conversation.get_nick()
|
||||
|
||||
conversation.last_remote_message = datetime.now()
|
||||
self.core.events.trigger('conversation_msg', message, conversation)
|
||||
|
||||
self.core.events.trigger('conversation_msg', message, conversation)
|
||||
if not message['body']:
|
||||
return
|
||||
body = xhtml.get_body_from_message_stanza(
|
||||
|
|
Loading…
Reference in a new issue