Add Matrix->Telegram message pinning and show user in Telegram->Matrix pinning. Fixes #90

This commit is contained in:
Tulir Asokan
2018-03-10 15:45:41 +02:00
parent 42e33ab54d
commit 7837f03532
3 changed files with 61 additions and 8 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ class AbstractUser:
async def update_pinned_messages(self, update):
portal = po.Portal.get_by_tgid(update.channel_id)
if portal and portal.mxid:
await portal.update_telegram_pin(self, update.id)
await portal.receive_telegram_pin_id(update.id)
async def update_participants(self, update):
portal = po.Portal.get_by_tgid(update.participants.chat_id)