mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Improve handling case when sticker-pack is not present in banlist
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user