diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-05 09:02:07 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-05 09:02:07 -0600 |
commit | 9ddf26f6fb1a947c6e473c925423775f948453e4 (patch) | |
tree | 651d92539c99be9362cbd31214edc0e86eff75f1 /api | |
parent | 456b7872a47aea135fbadf334e9ecf653712d48a (diff) | |
download | chat-9ddf26f6fb1a947c6e473c925423775f948453e4.tar.gz chat-9ddf26f6fb1a947c6e473c925423775f948453e4.tar.bz2 chat-9ddf26f6fb1a947c6e473c925423775f948453e4.zip |
Fixing error message
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go index dd9bd0bac..0c4ada0c1 100644 --- a/api/team.go +++ b/api/team.go @@ -480,7 +480,7 @@ func inviteMembers(c *Context, w http.ResponseWriter, r *http.Request) { var invNum int64 = 0 for i, invite := range invites.Invites { - if result := <-Srv.Store.User().GetByEmail(c.Session.TeamId, invite["email"]); result.Err == nil || result.Err.Message != "We couldn't find the existing account" { + if result := <-Srv.Store.User().GetByEmail(c.Session.TeamId, invite["email"]); result.Err == nil || result.Err.Message != "We couldn't find an existing account matching your email address for this team. This team may require an invite from the team owner to join." { invNum = int64(i) c.Err = model.NewAppError("invite_members", "This person is already on your team", strconv.FormatInt(invNum, 10)) return |