mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2026-01-03 17:15:36 -05:00
Revert "When not using a UI, assume it is safe to send to unverified devices"
This reverts commit 4e993eae59.
This commit is contained in:
parent
6fe1f068ac
commit
cd34b813df
1 changed files with 3 additions and 6 deletions
|
|
@ -850,12 +850,9 @@ class ProxyDaemon:
|
|||
await self.send_ui_message(message)
|
||||
|
||||
try:
|
||||
if self.send_queue:
|
||||
response = await asyncio.wait_for(
|
||||
queue.get(), self.unverified_send_timeout
|
||||
)
|
||||
else:
|
||||
response = SendAnywaysMessage("irrelevant_message_ID", client, room_id)
|
||||
response = await asyncio.wait_for(
|
||||
queue.get(), self.unverified_send_timeout
|
||||
)
|
||||
|
||||
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