Revert "Revert "Improve sending message with mentions""

This reverts commit 0f043e36c4.
This commit is contained in:
Carl Schwan
2021-02-06 01:53:33 +01:00
parent 7ddd28406d
commit 12624c991c
4 changed files with 17 additions and 26 deletions

View File

@@ -500,9 +500,9 @@ ToolBar {
}
function postMessage() {
checkForFancyEffectsReason()
checkForFancyEffectsReason();
roomManager.actionsHandler.postMessage(inputField.text.trim(), attachmentPath,
replyEventID, editEventId, inputField.userAutocompleted);
replyEventID, editEventId);
clearAttachment();
currentRoom.markAllMessagesAsRead();
clear();
@@ -513,10 +513,6 @@ ToolBar {
function autoComplete() {
documentHandler.replaceAutoComplete(autoCompleteListView.currentItem.displayText)
// Unfortunally it doesn't
if (!autoCompleteListView.currentItem.isEmoji) {
inputField.userAutocompleted[autoCompleteListView.currentItem.displayText] = autoCompleteListView.currentItem.userId;
}
}
}
}
@@ -609,7 +605,6 @@ ToolBar {
function clear() {
inputField.clear()
inputField.userAutocompleted = {};
}
function clearEditReply() {