mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Comment on the purpose of updateMembership
This commit is contained in:
parent
3931af3b80
commit
6f5cf19bf9
|
|
@ -22,6 +22,10 @@ import (
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// updateMembership updates the current membership and the invites for each
|
||||||
|
// user affected by a change in the current state of the room.
|
||||||
|
// Returns a list of output events to write to the kafka log to inform the
|
||||||
|
// consumers about the invites added or retired by the change in current state.
|
||||||
func updateMemberships(
|
func updateMemberships(
|
||||||
db RoomEventDatabase, updater types.RoomRecentEventsUpdater, removed, added []types.StateEntry,
|
db RoomEventDatabase, updater types.RoomRecentEventsUpdater, removed, added []types.StateEntry,
|
||||||
) ([]api.OutputEvent, error) {
|
) ([]api.OutputEvent, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue