Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bb438de6e |
@@ -765,10 +765,7 @@ class ZulipAdapter(BasePlatformAdapter):
|
|||||||
self._health_stats["send_count"] += 1
|
self._health_stats["send_count"] += 1
|
||||||
return SendResult(
|
return SendResult(
|
||||||
success=True,
|
success=True,
|
||||||
platform="zulip",
|
|
||||||
chat_id=chat_id,
|
|
||||||
message_id=msg_id,
|
message_id=msg_id,
|
||||||
metadata={"placeholder": True},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Send actual content
|
# Send actual content
|
||||||
@@ -777,16 +774,12 @@ class ZulipAdapter(BasePlatformAdapter):
|
|||||||
self._health_stats["send_count"] += 1
|
self._health_stats["send_count"] += 1
|
||||||
return SendResult(
|
return SendResult(
|
||||||
success=True,
|
success=True,
|
||||||
platform="zulip",
|
|
||||||
chat_id=chat_id,
|
|
||||||
message_id=str(result["id"]),
|
message_id=str(result["id"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
self._health_stats["send_errors"] += 1
|
self._health_stats["send_errors"] += 1
|
||||||
return SendResult(
|
return SendResult(
|
||||||
success=False,
|
success=False,
|
||||||
platform="zulip",
|
|
||||||
chat_id=chat_id,
|
|
||||||
error="Failed to send message",
|
error="Failed to send message",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user