mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-02 23:21:58 +00:00
Reset the user's cached sticker packs when they (de)select packs
Otherwise we'll display stale packs and the user won't see updates. Part of #156
This commit is contained in:
parent
6c4e8f75d4
commit
8fa56de2bb
@ -114,6 +114,8 @@ export class DimensionStickerService {
|
||||
|
||||
userPack.isSelected = request.isSelected;
|
||||
await userPack.save();
|
||||
Cache.for(CACHE_STICKERS).del("packs_" + userId);
|
||||
|
||||
return {}; // 200 OK
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user