mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04: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;
|
userPack.isSelected = request.isSelected;
|
||||||
await userPack.save();
|
await userPack.save();
|
||||||
|
Cache.for(CACHE_STICKERS).del("packs_" + userId);
|
||||||
|
|
||||||
return {}; // 200 OK
|
return {}; // 200 OK
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user