Make suggestions popup insert wrapped emotes

The suggestions popup will now insert wrapped emotes instead of bare
word emotes.  This is so the autocompletion will still work if the
WrappedEmotesOnly setting is set to true.
This commit is contained in:
Zorchenhimer 2020-04-19 12:50:26 -04:00
parent fab56e39ea
commit 94a4f08467

View File

@ -81,7 +81,7 @@ func processMessageKey(this js.Value, v []js.Value) interface{} {
offset = 1 offset = 1
} }
newval = newval[:i+offset] + currentSug newval = newval[:i+offset] + ":" + currentSug + ":"
} }
endVal := val[startIdx:] endVal := val[startIdx:]