Add support for backfilling private chats

This commit is contained in:
Tulir Asokan
2020-02-04 22:50:58 +02:00
parent 2fbee75453
commit cf88823e6f
2 changed files with 12 additions and 2 deletions
+7 -2
View File
@@ -315,5 +315,10 @@ async def backfill(evt: CommandEvent) -> None:
try:
await portal.backfill(evt.sender)
except TakeoutInitDelayError:
await evt.reply("Please accept the data export request from a mobile device, "
"then re-run the backfill command.")
msg = ("Please accept the data export request from a mobile device, "
"then re-run the backfill command.")
if portal.peer_type == "user":
from mautrix.appservice import IntentAPI
await portal.main_intent.send_notice(evt.room_id, msg)
else:
await evt.reply(msg)