Sfoglia il codice sorgente

Disable reel share deduplication when caption merging is enabled

We insert the same mxid for the main item ID, so it creates a unique key conflict.
Reuploading reel shares when someone shares them multiple times is probably fine.
Tulir Asokan 2 anni fa
parent
commit
f9cfd85584
1 ha cambiato i file con 0 aggiunte e 11 eliminazioni
  1. 0 11
      mautrix_instagram/portal.py

+ 0 - 11
mautrix_instagram/portal.py

@@ -1110,17 +1110,6 @@ class Portal(DBPortal, BasePortal):
                 combined = caption_content
 
             event_id = await self._send_message(intent, combined, timestamp=item.timestamp_ms)
-
-            if media_content:
-                await DBMessage(
-                    mxid=event_id,
-                    mx_room=self.mxid,
-                    item_id=fake_item_id,
-                    client_context=None,
-                    receiver=self.receiver,
-                    sender=media.user.pk,
-                    ig_timestamp=None,
-                ).insert()
         else:
             await self._send_message(intent, prefix_content, timestamp=item.timestamp_ms)
             if media_content: