GUI compatibility: Detach interactive Config calls from MainThread

This commit is contained in:
Wizou 2021-12-05 11:47:52 +01:00
parent 409cf25619
commit 934ee9bae4
3 changed files with 11 additions and 10 deletions

View file

@ -21,7 +21,7 @@ namespace WTelegramClientTest
async void Client_Update(IObject arg)
{
if (arg is not Updates { updates: var updates }) return;
if (arg is not Updates { updates: var updates } upd) return;
foreach (var update in updates)
{
if (update is not UpdateNewMessage { message: Message message })