From d32ec596ba1e07d86e3cb2262b3e00e9a61d219b Mon Sep 17 00:00:00 2001 From: Derek Meer Date: Sat, 28 Jul 2018 10:48:54 -0700 Subject: [PATCH] removed outdated "flag" comments on clientapi membership storage Signed-off-by: Derek Meer --- .../clientapi/auth/storage/accounts/storage.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/auth/storage/accounts/storage.go b/src/github.com/matrix-org/dendrite/clientapi/auth/storage/accounts/storage.go index 3da695899..b58e0c50e 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/auth/storage/accounts/storage.go +++ b/src/github.com/matrix-org/dendrite/clientapi/auth/storage/accounts/storage.go @@ -143,8 +143,7 @@ func (d *Database) CreateAccount( } // SaveMembership saves the user matching a given localpart as a member of a given -// room. It also stores the ID of the membership event and a flag on whether the user -// is still in the room. +// room. It also stores the ID of the membership event. // If a membership already exists between the user and the room, or of the // insert fails, returns the SQL error func (d *Database) saveMembership( @@ -205,11 +204,9 @@ func (d *Database) GetMembershipsByLocalpart( return d.memberships.selectMembershipsByLocalpart(ctx, localpart) } -// newMembership will save a new membership in the database, with a flag on whether -// the user is still in the room. This flag is set to true if the given state -// event is a "join" membership event and false if the event is a "leave" or "ban" -// membership. If the event isn't a m.room.member event with one of these three -// values, does nothing. +// newMembership will save a new membership in the database. +// If the event isn't a m.room.member event or there's no state key +// (which stores the server name and localpart), does nothing. // If the event isn't a "join" membership event, does nothing // If an error occurred, returns it func (d *Database) newMembership(