diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2016-02-19 13:17:49 -0800 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2016-02-19 13:17:49 -0800 |
commit | 5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0 (patch) | |
tree | 102bad605348f504d0d9f1d9a420ac24f6cbaaab /store | |
parent | 8d807867ac09f3b01a2db66f646f1435a334936b (diff) | |
download | chat-5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0.tar.gz chat-5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0.tar.bz2 chat-5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0.zip |
Fixed issue with corrupted custom mentions on username change
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_user_store.go | 2 |
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 { |