From 0e98b124ac9865d11a3cd6aa4d488800db9a5401 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 20 May 2019 15:33:54 +0200 Subject: [PATCH] undo thinko of passing current room as pill room --- src/editor/autocomplete.js | 2 +- src/editor/deserialize.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/autocomplete.js b/src/editor/autocomplete.js index 82d4086b45..731bb8d986 100644 --- a/src/editor/autocomplete.js +++ b/src/editor/autocomplete.js @@ -89,7 +89,7 @@ export default class AutocompleteWrapperModel { } case "#": { const displayAlias = completion.completionId; - return new RoomPillPart(displayAlias, this._room); + return new RoomPillPart(displayAlias); } // also used for emoji completion default: diff --git a/src/editor/deserialize.js b/src/editor/deserialize.js index 0c9d090ea5..569e166ab0 100644 --- a/src/editor/deserialize.js +++ b/src/editor/deserialize.js @@ -38,7 +38,7 @@ function parseHtmlMessage(html, room) { const prefix = pillMatch[2]; // The first character of prefix switch (prefix) { case "@": return new UserPillPart(resourceId, n.textContent, room.getMember(resourceId)); - case "#": return new RoomPillPart(resourceId, n.textContent, room); + case "#": return new RoomPillPart(resourceId); default: return new PlainPart(n.textContent); } }