mirror of https://github.com/zulip/zulip.git
jabber_mirror: Fix anti-looping
(imported from commit 5b0ee18b3ec4fd73912fde83b14083e77940ab6e)
This commit is contained in:
parent
f6cec22e6d
commit
52d6973191
|
@ -158,7 +158,7 @@ class ZulipToJabberBot(zulip.Client):
|
||||||
mto = jabber_recipient,
|
mto = jabber_recipient,
|
||||||
mbody = msg['content'],
|
mbody = msg['content'],
|
||||||
mtype = 'groupchat')
|
mtype = 'groupchat')
|
||||||
outgoing['thread'] == u'\u1B80'
|
outgoing['thread'] = u'\u1B80'
|
||||||
outgoing.send()
|
outgoing.send()
|
||||||
|
|
||||||
def private_message(self, msg):
|
def private_message(self, msg):
|
||||||
|
@ -172,7 +172,7 @@ class ZulipToJabberBot(zulip.Client):
|
||||||
mto = jabber_recipient,
|
mto = jabber_recipient,
|
||||||
mbody = msg['content'],
|
mbody = msg['content'],
|
||||||
mtype = 'chat')
|
mtype = 'chat')
|
||||||
outgoing['thread'] == u'\u1B80'
|
outgoing['thread'] = u'\u1B80'
|
||||||
outgoing.send()
|
outgoing.send()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue