From 13c38ef4983c51b8f037d9fd383cc18fecf2df77 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 7 Aug 2017 15:51:09 +0100 Subject: [PATCH] More comments --- .../matrix-org/dendrite/roomserver/types/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/types/types.go b/src/github.com/matrix-org/dendrite/roomserver/types/types.go index c3298342a..809b6e574 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/types/types.go +++ b/src/github.com/matrix-org/dendrite/roomserver/types/types.go @@ -184,11 +184,11 @@ type RoomRecentEventsUpdater interface { // The caller should call one of SetToInvite, SetToJoin or SetToLeave once to // make the update, or none of them if no update is required. type MembershipUpdater interface { - // True if the target user is invited to the room. + // True if the target user is invited to the room before updating. IsInvite() bool - // True if the target user is joined to the room. + // True if the target user is joined to the room before updating. IsJoin() bool - // True if the target user is not invited or joined to the room. + // True if the target user is not invited or joined to the room before updating. IsLeave() bool // Set the state to invite. // Returns whether this invite needs to be sent