private async void OpenKeyboard() { if (!dialogsManager.CanWrite(dialogId)) { return; } newMessageInputShown = true; await dialogsManager.SetDialogAndMessagesReadAndPublish(dialogId); popupEntryView.IsPopupOpened = true; await Task.Delay(newMessageInputShownTimeout); newMessageInputShown = false; }