mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
jabber_mirror: Fix Zulip error handling
(imported from commit 8548576635e5be9b725e059c2d4d9ef9953ec97a)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user