mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 22:58:18 +08:00
skip loading room & finding member, use existing member field
This commit is contained in:
parent
3515b2ca05
commit
8139aeb073
@ -27,8 +27,6 @@ import AutocompleteWrapperModel, {
|
|||||||
import * as Avatar from "../Avatar";
|
import * as Avatar from "../Avatar";
|
||||||
import defaultDispatcher from "../dispatcher/dispatcher";
|
import defaultDispatcher from "../dispatcher/dispatcher";
|
||||||
import { Action } from "../dispatcher/actions";
|
import { Action } from "../dispatcher/actions";
|
||||||
import RoomViewStore from "../stores/RoomViewStore";
|
|
||||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
|
||||||
|
|
||||||
interface ISerializedPart {
|
interface ISerializedPart {
|
||||||
type: Type.Plain | Type.Newline | Type.Command | Type.PillCandidate;
|
type: Type.Plain | Type.Newline | Type.Command | Type.PillCandidate;
|
||||||
@ -416,7 +414,7 @@ class UserPillPart extends PillPart {
|
|||||||
protected onClick = () => {
|
protected onClick = () => {
|
||||||
defaultDispatcher.dispatch({
|
defaultDispatcher.dispatch({
|
||||||
action: Action.ViewUser,
|
action: Action.ViewUser,
|
||||||
member: MatrixClientPeg.get().getRoom(RoomViewStore.getRoomId()).getMember(this.resourceId),
|
member: this.member,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user