Fix bot.add_chat() when creating Telegram chat

This commit is contained in:
Tulir Asokan
2018-03-11 13:06:26 +02:00
parent 209d7cbdcc
commit 4448077d43
+1 -1
View File
@@ -861,7 +861,7 @@ class Portal:
await self.update_info(source, entity)
self.save()
if self.bot and self.bot.mxid in invites:
if self.bot and self.bot.tgid in invites:
self.bot.add_chat(self.tgid, self.peer_type)
levels = await self.main_intent.get_power_levels(self.mxid)