summaryrefslogtreecommitdiffstats
path: root/store/sql_user_store.go
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2016-02-19 13:17:49 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2016-02-19 13:17:49 -0800
commit5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0 (patch)
tree102bad605348f504d0d9f1d9a420ac24f6cbaaab /store/sql_user_store.go
parent8d807867ac09f3b01a2db66f646f1435a334936b (diff)
downloadchat-5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0.tar.gz
chat-5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0.tar.bz2
chat-5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0.zip
Fixed issue with corrupted custom mentions on username change
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r--store/sql_user_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go
index b1544289d..d866f949a 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -159,7 +159,7 @@ func (us SqlUserStore) Update(user *model.User, allowActiveUpdate bool) StoreCha
nonUsernameKeys = append(nonUsernameKeys, key)
}
}
- user.NotifyProps["mention_keys"] = strings.Join(nonUsernameKeys, ",") + user.Username + ",@" + user.Username
+ user.NotifyProps["mention_keys"] = strings.Join(nonUsernameKeys, ",") + "," + user.Username + ",@" + user.Username
}
if count, err := us.GetMaster().Update(user); err != nil {