Improve handling case when sticker-pack is not present in banlist

This commit is contained in:
2022-05-05 22:21:43 +03:00
parent 97fc51775d
commit 322ece7056
@@ -58,12 +58,10 @@ public partial class BanStickerSet
return; return;
} }
if (!list.Exists(e => e == stickerSet)) if (!list.Remove(stickerSet))
{ {
return; return;
} }
list.Remove(stickerSet);
option.SetValue(list); option.SetValue(list);
Db.AddOrUpdate(option); Db.AddOrUpdate(option);