mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +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 defaultDispatcher from "../dispatcher/dispatcher";
|
||||
import { Action } from "../dispatcher/actions";
|
||||
import RoomViewStore from "../stores/RoomViewStore";
|
||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
|
||||
interface ISerializedPart {
|
||||
type: Type.Plain | Type.Newline | Type.Command | Type.PillCandidate;
|
||||
@ -416,7 +414,7 @@ class UserPillPart extends PillPart {
|
||||
protected onClick = () => {
|
||||
defaultDispatcher.dispatch({
|
||||
action: Action.ViewUser,
|
||||
member: MatrixClientPeg.get().getRoom(RoomViewStore.getRoomId()).getMember(this.resourceId),
|
||||
member: this.member,
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user