mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Remove OnInvalidateRoom from Reciever interface
This commit is contained in:
parent
c239cacc83
commit
eb1ada2f95
@ -771,10 +771,3 @@ func (u *UserCache) ShouldIgnore(userID string) bool {
|
||||
_, ignored := u.ignoredUsers[userID]
|
||||
return ignored
|
||||
}
|
||||
|
||||
func (u *UserCache) OnInvalidateRoom(ctx context.Context, roomID string) {
|
||||
// Nothing for now. In UserRoomData the fields dependant on room state are
|
||||
// IsDM, IsInvite, HasLeft, Invite, CanonicalisedName, ResolvedAvatarURL, Spaces.
|
||||
// Not clear to me if we need to reload these or if we will inherit any changes from
|
||||
// the global cache.
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ type Receiver interface {
|
||||
OnNewEvent(ctx context.Context, event *caches.EventData)
|
||||
OnReceipt(ctx context.Context, receipt internal.Receipt)
|
||||
OnEphemeralEvent(ctx context.Context, roomID string, ephEvent json.RawMessage)
|
||||
OnInvalidateRoom(ctx context.Context, roomID string)
|
||||
// OnRegistered is called after a successful call to Dispatcher.Register
|
||||
OnRegistered(ctx context.Context) error
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user