Deduplicate LINE stickers #10
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LINE stickers are currently re-downloaded every time they are bridged.
Ideally, the mxid of any bridged sticker should be saved to the media database, which can be reused the next time that sticker is received. This is what is done for sticons (LINE custom emoji) and EmojiOne.
However, unlike the others, stickers aren't identified by a fixed, globally-unique "path"; they're instead just a blob URL, which I think can change. This will make storing them in the DB less effective, as if they can't be uniquely identified, the bridge won't be able to pick the right mxid from the DB, and will re-download the sticker.
Nevertheless, some deduplication is better than none, so the blob URL should be used as a "weak" ID to put in the DB.
Done by
6d646e0
.