Prevent UI from suggesting you can message yourself

This commit is contained in:
tms 2013-02-11 02:12:53 -05:00
parent 4b92cfe80f
commit ee3d01af1c
1 changed files with 1 additions and 1 deletions

View File

@ -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(","))