private void UpdateExcludeThreads(InboxContainer source) { PendingRequestsCount = source.PendingRequestsCount; SeqId = source.SeqId; SnapshotAt = source.SnapshotAt; var inbox = source.Inbox; UnseenCount = inbox.UnseenCount; UnseenCountTs = inbox.UnseenCountTs; BlendedInboxEnabled = inbox.BlendedInboxEnabled; if (string.IsNullOrEmpty(OldestCursor) || string.Compare(OldestCursor, inbox.OldestCursor, StringComparison.Ordinal) > 0) { OldestCursor = inbox.OldestCursor; HasOlder = inbox.HasOlder; } }
private void UpdateExcludeThreads(InboxContainer source) { PendingRequestsCount = source.PendingRequestsCount; SeqId = source.SeqId; SnapshotAt = source.SnapshotAt; var inbox = source.Inbox; UnseenCount = inbox.UnseenCount; UnseenCountTs = inbox.UnseenCountTs; BlendedInboxEnabled = inbox.BlendedInboxEnabled; if (string.IsNullOrEmpty(OldestCursor) || string.Compare(OldestCursor, inbox.OldestCursor, StringComparison.Ordinal) > 0) { OldestCursor = inbox.OldestCursor; HasOlder = inbox.HasOlder; } _ = CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(PendingRequestsCount))); }); }