File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ export function textSerialize(model: EditorModel) {
6262}
6363
6464export function containsEmote ( model : EditorModel ) {
65- return startsWith ( model , "/me " , true ) ;
65+ return startsWith ( model , "/me " , false ) ;
6666}
6767
68- export function startsWith ( model : EditorModel , prefix : string , caseInsensitive = false ) {
68+ export function startsWith ( model : EditorModel , prefix : string , caseSensitive = true ) {
6969 const firstPart = model . parts [ 0 ] ;
7070 // part type will be "plain" while editing,
7171 // and "command" while composing a message.
7272 let text = firstPart && firstPart . text ;
73- if ( caseInsensitive ) {
73+ if ( ! caseSensitive ) {
7474 prefix = prefix . toLowerCase ( ) ;
7575 text = text . toLowerCase ( ) ;
7676 }
You can’t perform that action at this time.
0 commit comments