aboutsummaryrefslogtreecommitdiff
path: root/clientapi/threepid/invites.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/threepid/invites.go')
-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