Fix call end message
This commit is contained in:
@@ -3688,7 +3688,7 @@ class Portal(DBPortal, BasePortal):
|
|||||||
end_reason = "disconnected"
|
end_reason = "disconnected"
|
||||||
body = f"{call_type} {end_reason}"
|
body = f"{call_type} {end_reason}"
|
||||||
if action.duration:
|
if action.duration:
|
||||||
body += f" ({format_duration(action.duration)}"
|
body += f" ({format_duration(action.duration)})"
|
||||||
await self._send_message(
|
await self._send_message(
|
||||||
sender.intent_for(self),
|
sender.intent_for(self),
|
||||||
TextMessageEventContent(msgtype=MessageType.NOTICE, body=body),
|
TextMessageEventContent(msgtype=MessageType.NOTICE, body=body),
|
||||||
|
|||||||
Reference in New Issue
Block a user