You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
undo thinko of passing current room as pill room
This commit is contained in:
@@ -89,7 +89,7 @@ export default class AutocompleteWrapperModel {
|
|||||||
}
|
}
|
||||||
case "#": {
|
case "#": {
|
||||||
const displayAlias = completion.completionId;
|
const displayAlias = completion.completionId;
|
||||||
return new RoomPillPart(displayAlias, this._room);
|
return new RoomPillPart(displayAlias);
|
||||||
}
|
}
|
||||||
// also used for emoji completion
|
// also used for emoji completion
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function parseHtmlMessage(html, room) {
|
|||||||
const prefix = pillMatch[2]; // The first character of prefix
|
const prefix = pillMatch[2]; // The first character of prefix
|
||||||
switch (prefix) {
|
switch (prefix) {
|
||||||
case "@": return new UserPillPart(resourceId, n.textContent, room.getMember(resourceId));
|
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);
|
default: return new PlainPart(n.textContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user