Add basic UI support for invalid handles in Web UI (#40045)
This commit is contained in:
1 parent
d303a23f7f
commit
e21dc88ce9
11 files changed
+163
-50
No files matched your search
@@ -465,23 +465,25 @@ function getMenuItems({
|
||||
return menu;
|
||||
}
|
||||
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.mention, {
|
||||
name: account.username,
|
||||
}),
|
||||
action: () => {
|
||||
dispatch(mentionCompose(account));
|
||||
},
|
||||
});
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.direct, {
|
||||
name: account.username,
|
||||
}),
|
||||
action: () => {
|
||||
dispatch(directCompose(account));
|
||||
},
|
||||
});
|
||||
menu.push(null);
|
||||
if (!account.invalid_handle) {
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.mention, {
|
||||
name: account.username,
|
||||
}),
|
||||
action: () => {
|
||||
dispatch(mentionCompose(account));
|
||||
},
|
||||
});
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.direct, {
|
||||
name: account.username,
|
||||
}),
|
||||
action: () => {
|
||||
dispatch(directCompose(account));
|
||||
},
|
||||
});
|
||||
menu.push(null);
|
||||
}
|
||||
|
||||
if (interactions.revokeQuote) {
|
||||
menu.push({
|
||||
|
||||
Reference in new issue
Block a user