aboutsummaryrefslogtreecommitdiff
path: root/clientapi/auth
diff options
context:
space:
mode:
authorAlex Chen <Cnly@users.noreply.github.com>2019-08-06 22:07:36 +0800
committerAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-08-06 15:07:36 +0100
commitf8d2860765325c29d516f766002b46515b3e0a8c (patch)
tree30d4958b3f9ebc313918549bc5cd9d6a1eb9764b /clientapi/auth
parentd283676b9ac5137e745dcc61587929a296359265 (diff)
Replace membership and visibility values with constants (#774)
Signed-off-by: Alex Chen <minecnly@gmail.com>
Diffstat (limited to 'clientapi/auth')
-rw-r--r--clientapi/auth/storage/accounts/storage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/auth/storage/accounts/storage.go b/clientapi/auth/storage/accounts/storage.go
index 5c8ffffe..41d75daa 100644
--- a/clientapi/auth/storage/accounts/storage.go
+++ b/clientapi/auth/storage/accounts/storage.go
@@ -230,7 +230,7 @@ func (d *Database) newMembership(
}
// Only "join" membership events can be considered as new memberships
- if membership == "join" {
+ if membership == gomatrixserverlib.Join {
if err := d.saveMembership(ctx, txn, localpart, roomID, eventID); err != nil {
return err
}