You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Add support for unread thread notifications (#2726)
This commit is contained in:
@@ -57,6 +57,8 @@ export interface IRoomEventFilter extends IFilterComponent {
|
||||
types?: Array<EventType | string>;
|
||||
related_by_senders?: Array<RelationType | string>;
|
||||
related_by_rel_types?: string[];
|
||||
unread_thread_notifications?: boolean;
|
||||
"org.matrix.msc3773.unread_thread_notifications"?: boolean;
|
||||
|
||||
// Unstable values
|
||||
"io.element.relation_senders"?: Array<RelationType | string>;
|
||||
@@ -220,7 +222,15 @@ export class Filter {
|
||||
setProp(this.definition, "room.timeline.limit", limit);
|
||||
}
|
||||
|
||||
setLazyLoadMembers(enabled: boolean) {
|
||||
/**
|
||||
* Enable threads unread notification
|
||||
* @param {boolean} enabled
|
||||
*/
|
||||
public setUnreadThreadNotifications(enabled: boolean): void {
|
||||
setProp(this.definition, "room.timeline.unread_thread_notifications", !!enabled);
|
||||
}
|
||||
|
||||
setLazyLoadMembers(enabled: boolean): void {
|
||||
setProp(this.definition, "room.state.lazy_load_members", !!enabled);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user