Merge pull request #115 from tms/stop-talking-to-yourself
Prevent UI from suggesting you can message yourself
This commit is contained in:
commit
6d49c35eb5
|
@ -129,7 +129,7 @@ window.Discourse.ComposerView = window.Discourse.View.extend
|
|||
Discourse.UserSearch.search
|
||||
term: term,
|
||||
callback: callback,
|
||||
exclude: selected
|
||||
exclude: selected.concat [Discourse.get('currentUser.username')]
|
||||
onChangeItems: (items) =>
|
||||
items = $.map items, (i) -> if i.username then i.username else i
|
||||
@set('content.targetUsernames', items.join(","))
|
||||
|
|
Loading…
Reference in New Issue