fix: hide actions when favorited
This commit is contained in:
parent
901693ef16
commit
414793f5eb
|
@ -53,12 +53,12 @@ export default function ChatRightUsers() {
|
|||
if (!isAnonymous && !isSelf) {
|
||||
if (hasFriendship) {
|
||||
if ('active' === friendship[index].status) {
|
||||
if (-1 === favoriteUsers.indexOf(username)) {
|
||||
userActions.push({
|
||||
icon: '🚫',
|
||||
label: 'Unfriend',
|
||||
onClick: () => dispatch(submitRemoveFriend(id)),
|
||||
});
|
||||
if (-1 === favoriteUsers.indexOf(username)) {
|
||||
userActions.push({
|
||||
icon: '❤️',
|
||||
label: 'Favorite',
|
||||
|
@ -105,7 +105,7 @@ export default function ChatRightUsers() {
|
|||
onClick: () => dispatch(submitUnblock(id)),
|
||||
});
|
||||
}
|
||||
else {
|
||||
else if (-1 === favoriteUsers.indexOf(username)) {
|
||||
userActions.push({
|
||||
icon: '☢️',
|
||||
label: 'Block',
|
||||
|
|
Loading…
Reference in New Issue
Block a user