Fix completion when tabing users

This was caused by weird bindings. Now just access the userId value
directly.

Fix #324
This commit is contained in:
Carl Schwan
2021-05-28 14:25:55 +02:00
parent 7cd9f788dd
commit d9125148fe
2 changed files with 3 additions and 8 deletions

View File

@@ -371,7 +371,7 @@ ToolBar {
function complete() {
documentHandler.replaceAutoComplete(completionMenu.currentDisplayText);
if (completionMenu.completionType === ChatDocumentHandler.User) {
userAutocompleted[completionMenu.currentDisplayText] = completionMenu.currentUserId;
userAutocompleted[completionMenu.currentDisplayText] = completionMenu.currentItem.userId;
}
}
}