/// <summary> /// Handles a delete event /// </summary> /// <param name="pushEvent"></param> private void HandleDeleteEvent(DeleteEvent deleteEvent) { this.ReadConversationFromLocalDB(); DispatcherHelper.InvokeOnUiThread(() => { this.NotifyPropertyChanged("IsLoaded"); }); }
private void HandleDeleteEvent(DeleteEvent deleteEvent) { DispatcherHelper.InvokeOnUiThread(() => { lock (this) { try { this.messages.Clear(); this.LoadMessagesForConversations(); } catch (Exception) { } } }); }