mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2026-01-03 09:05:39 -05:00
When not using a UI, assume it is safe to send to unverified devices
This is also for bot/docker usage. It's arguable that this should be behind a config flag somewhere.
This commit is contained in:
parent
48c7f7a17e
commit
4e993eae59
1 changed files with 6 additions and 3 deletions
|
|
@ -853,9 +853,12 @@ class ProxyDaemon:
|
|||
await self.send_ui_message(message)
|
||||
|
||||
try:
|
||||
response = await asyncio.wait_for(
|
||||
queue.get(), self.unverified_send_timeout
|
||||
)
|
||||
if self.send_queue:
|
||||
response = await asyncio.wait_for(
|
||||
queue.get(), self.unverified_send_timeout
|
||||
)
|
||||
else:
|
||||
response = SendAnywaysMessage("irrelevant_message_ID", client, room_id)
|
||||
|
||||
if isinstance(response, CancelSendingMessage):
|
||||
# The send was canceled notify the client that sent the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue