Explorar o código

Use instagram.com suffix for backfilled event IDs (#79)

Brad Murray %!s(int64=2) %!d(string=hai) anos
pai
achega
340cad3cb3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mautrix_instagram/portal.py

+ 1 - 1
mautrix_instagram/portal.py

@@ -1611,7 +1611,7 @@ class Portal(DBPortal, BasePortal):
             hash_content += f"/{part_name}"
         hashed = hashlib.sha256(hash_content.encode("utf-8")).digest()
         b64hash = base64.urlsafe_b64encode(hashed).decode("utf-8").rstrip("=")
-        return EventID(f"${b64hash}:telegram.org")
+        return EventID(f"${b64hash}:instagram.com")
 
     async def handle_instagram_remove(self, item_id: str) -> None:
         message = await DBMessage.get_by_item_id(item_id, self.receiver)