File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,14 @@ export class Filter {
221
221
setProp ( this . definition , "room.timeline.limit" , limit ) ;
222
222
}
223
223
224
+ /**
225
+ * Enable threads unread notification
226
+ * @param {boolean } enabled
227
+ */
228
+ public setUnreadThreadNotifications ( enabled : boolean ) {
229
+ setProp ( this . definition , "room.timeline.unread_thread_notifications" , enabled ) ;
230
+ }
231
+
224
232
setLazyLoadMembers ( enabled : boolean ) {
225
233
setProp ( this . definition , "room.state.lazy_load_members" , ! ! enabled ) ;
226
234
}
Original file line number Diff line number Diff line change @@ -138,8 +138,6 @@ interface ISyncParams {
138
138
// eslint-disable-next-line camelcase
139
139
set_presence ?: SetPresence ;
140
140
_cacheBuster ?: string | number ; // not part of the API itself
141
- unread_thread_notifications ?: boolean ;
142
- "org.matrix.msc3773.unread_thread_notifications" ?: boolean ;
143
141
}
144
142
145
143
type WrappedRoom < T > = T & {
@@ -662,6 +660,7 @@ export class SyncApi {
662
660
const buildDefaultFilter = ( ) => {
663
661
const filter = new Filter ( client . credentials . userId ) ;
664
662
filter . setTimelineLimit ( this . opts . initialSyncLimit ) ;
663
+ filter . setUnreadThreadNotifications ( true ) ;
665
664
return filter ;
666
665
} ;
667
666
@@ -1000,8 +999,6 @@ export class SyncApi {
1000
999
const qps : ISyncParams = {
1001
1000
"filter" : filterId ,
1002
1001
"timeout" : pollTimeout ,
1003
- "unread_thread_notifications" : true ,
1004
- "org.matrix.msc3773.unread_thread_notifications" : true ,
1005
1002
} ;
1006
1003
1007
1004
if ( this . opts . disablePresence ) {
You can’t perform that action at this time.
0 commit comments