From 6284790f986b922877895a3db31ca2723509dbf9 Mon Sep 17 00:00:00 2001 From: kegsay Date: Wed, 3 May 2023 10:21:27 +0100 Subject: 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 --- syncapi/notifier/notifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syncapi/notifier/notifier.go') 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. -- cgit v1.2.3