Possibly speed up syncs with filters
This commit is contained in:
@ -134,5 +134,24 @@ func (s *GomuksSyncer) OnFailedSync(res *gomatrix.RespSync, err error) (time.Dur
|
||||
|
||||
// GetFilterJSON returns a filter with a timeline limit of 50.
|
||||
func (s *GomuksSyncer) GetFilterJSON(userID string) json.RawMessage {
|
||||
return json.RawMessage(`{"room":{"timeline":{"limit":50}}}`)
|
||||
return json.RawMessage(`{
|
||||
"room": {
|
||||
"include_leave": true,
|
||||
"state": {
|
||||
"types": ["m.room.member"]
|
||||
},
|
||||
"timeline": {
|
||||
"types": ["m.room.message"],
|
||||
"limit": 50
|
||||
},
|
||||
"ephemeral": {
|
||||
"types": ["m.typing"]
|
||||
},
|
||||
"account_data": {"types": []}
|
||||
},
|
||||
"account_data": {
|
||||
"types": ["m.push_rules"]
|
||||
},
|
||||
"presence": {"types": []}
|
||||
}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user