aboutsummaryrefslogtreecommitdiff
path: root/clientapi/threepid
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/threepid
parentd283676b9ac5137e745dcc61587929a296359265 (diff)
Replace membership and visibility values with constants (#774)
Signed-off-by: Alex Chen <minecnly@gmail.com>
Diffstat (limited to 'clientapi/threepid')
-rw-r--r--clientapi/threepid/invites.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/threepid/invites.go b/clientapi/threepid/invites.go
index 2538577f..251afb0d 100644
--- a/clientapi/threepid/invites.go
+++ b/clientapi/threepid/invites.go
@@ -91,7 +91,7 @@ func CheckAndProcessInvite(
producer *producers.RoomserverProducer, membership string, roomID string,
evTime time.Time,
) (inviteStoredOnIDServer bool, err error) {
- if membership != "invite" || (body.Address == "" && body.IDServer == "" && body.Medium == "") {
+ if membership != gomatrixserverlib.Invite || (body.Address == "" && body.IDServer == "" && body.Medium == "") {
// If none of the 3PID-specific fields are supplied, it's a standard invite
// so return nil for it to be processed as such
return