diff options
author | kegsay <kegan@matrix.org> | 2023-05-03 10:21:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 10:21:27 +0100 |
commit | 6284790f986b922877895a3db31ca2723509dbf9 (patch) | |
tree | f9426d8be7004aa33ed9dc75ab483af484f96d83 /syncapi/notifier/notifier.go | |
parent | 9b98e5a10282dbf594f46a41baa21191b2d2b8f6 (diff) |
Use PDU in even more places (#3074)
- No longer rely on *Event returning from NewEventFrom... functions
Requires https://github.com/matrix-org/gomatrixserverlib/pull/377
Diffstat (limited to 'syncapi/notifier/notifier.go')
-rw-r--r-- | syncapi/notifier/notifier.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/notifier/notifier.go b/syncapi/notifier/notifier.go index b76bdce3..f7645685 100644 --- a/syncapi/notifier/notifier.go +++ b/syncapi/notifier/notifier.go @@ -79,7 +79,7 @@ func (n *Notifier) SetCurrentPosition(currPos types.StreamingToken) { // OnNewEvent is called when a new event is received from the room server. Must only be // called from a single goroutine, to avoid races between updates which could set the // current sync position incorrectly. -// Chooses which user sync streams to update by a provided *gomatrixserverlib.Event +// Chooses which user sync streams to update by a provided gomatrixserverlib.PDU // (based on the users in the event's room), // a roomID directly, or a list of user IDs, prioritised by parameter ordering. // posUpdate contains the latest position(s) for one or more types of events. |