jabber_mirror: Fix Zulip error handling
(imported from commit 8548576635e5be9b725e059c2d4d9ef9953ec97a)
This commit is contained in:
parent
ce660ac03f
commit
799953e7df
|
@ -155,7 +155,7 @@ class JabberToZulipBot(ClientXMPP):
|
|||
content = msg["body"],
|
||||
)
|
||||
ret = self.zulip.client.send_message(zulip_message)
|
||||
if ret.get("status") != "success":
|
||||
if ret.get("result") != "success":
|
||||
logging.error(ret)
|
||||
|
||||
def group(self, msg):
|
||||
|
@ -182,7 +182,7 @@ class JabberToZulipBot(ClientXMPP):
|
|||
content = msg["body"],
|
||||
)
|
||||
ret = self.zulip.client.send_message(zulip_message)
|
||||
if ret.get("status") != "success":
|
||||
if ret.get("result") != "success":
|
||||
logging.error(ret)
|
||||
|
||||
def nickname_to_jid(self, room, nick):
|
||||
|
|
Loading…
Reference in a new issue