undo thinko of passing current room as pill room

This commit is contained in:
Bruno Windels 2019-05-20 15:33:54 +02:00
parent 230e53fe2f
commit 0e98b124ac
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
}