fixup: isMe
This commit is contained in:
parent
8dd7d8e5c0
commit
238555f4ec
1 changed files with 5 additions and 1 deletions
|
@ -215,6 +215,10 @@ const UserOptionsSection = withLegacyMatrixClient(({matrixClient: cli, member, i
|
||||||
let inviteUserButton = null;
|
let inviteUserButton = null;
|
||||||
let readReceiptButton = null;
|
let readReceiptButton = null;
|
||||||
|
|
||||||
|
const isMe = member.userId === cli.getUserId();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const onShareUserClick = () => {
|
const onShareUserClick = () => {
|
||||||
const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
|
const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
|
||||||
Modal.createTrackedDialog('share room member dialog', '', ShareDialog, {
|
Modal.createTrackedDialog('share room member dialog', '', ShareDialog, {
|
||||||
|
@ -224,7 +228,7 @@ const UserOptionsSection = withLegacyMatrixClient(({matrixClient: cli, member, i
|
||||||
|
|
||||||
// Only allow the user to ignore the user if its not ourselves
|
// Only allow the user to ignore the user if its not ourselves
|
||||||
// same goes for jumping to read receipt
|
// same goes for jumping to read receipt
|
||||||
if (member.userId !== cli.getUserId()) {
|
if (!isMe) {
|
||||||
const onIgnoreToggle = () => {
|
const onIgnoreToggle = () => {
|
||||||
const ignoredUsers = cli.getIgnoredUsers();
|
const ignoredUsers = cli.getIgnoredUsers();
|
||||||
if (isIgnored) {
|
if (isIgnored) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue