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;
}
if (!list.Exists(e => e == stickerSet))
if (!list.Remove(stickerSet))
{
return;
}
list.Remove(stickerSet);
option.SetValue(list);
Db.AddOrUpdate(option);