-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements MSC3773 (Thread Notifications) #7424
Conversation
…eserver capatibilities
…s_and_receipts' into feature/eric/msc3773 # Conflicts: # matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. 2 first remarks on the form.
val threadList = it.invoke() | ||
val isUserMentioned = threadList?.firstOrNull { threadRootEvent -> | ||
threadRootEvent.root.threadDetails?.threadNotificationState == ThreadNotificationState.NEW_HIGHLIGHTED_MESSAGE | ||
}?.let { true } ?: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}?.let { true } ?: false | |
} != null |
is maybe simpler
) | ||
) | ||
} | ||
val threadNotificationsSupported = session.homeServerCapabilitiesService().getHomeServerCapabilities().canUseThreadReadReceiptsAndNotifications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping if (room == null) return
would simplify the rest of the code.
# Conflicts: # matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/RealmSessionStoreMigration.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update!
SonarCloud Quality Gate failed. |
Type of change
Content
Implements MSC3773
Motivation and context
Closes #6997
Thread notifications now come with sync response. This must be opted into and should also be able to fall back to previous homeserver versions that don't support the new unread thread notifications api.
Screenshots / GIFs
N/A
Tests
Tested devices
Checklist