Fix for Cleanup method
- there was an collection changed exception which blocked the method from working
This commit is contained in:
parent
1fd4752c0e
commit
dc364b5fd3
@ -142,8 +142,9 @@ namespace TelegramBotBase.Form
|
||||
foreach(var m in msgs)
|
||||
{
|
||||
Device.OnMessageDeleted(new MessageDeletedEventArgs(m));
|
||||
this.OldMessages.Remove(m);
|
||||
}
|
||||
|
||||
this.OldMessages.RemoveRange(0, msgs.Count());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user