diff --git a/src/components/Note/NoteContextMenu.tsx b/src/components/Note/NoteContextMenu.tsx index e517a582..1129e0a0 100644 --- a/src/components/Note/NoteContextMenu.tsx +++ b/src/components/Note/NoteContextMenu.tsx @@ -195,7 +195,7 @@ const NoteContextMenu: Component<{ icon: 'copy_raw_data', }, { - label: intl.formatMessage(tActions.noteContext.breadcast), + label: intl.formatMessage(tActions.noteContext.broadcast), action: broadcastNote, icon: 'broadcast', }, @@ -208,8 +208,17 @@ const NoteContextMenu: Component<{ const noteContextForOtherPeople: () => MenuItem[] = () => { const isMuted = account?.muted.includes(note()?.user.pubkey); + const isFollowed = account?.following.includes(note()?.post.pubkey); return [ + { + label: isFollowed? intl.formatMessage(tActions.noteContext.unFollowAuthor): intl.formatMessage(tActions.noteContext.followAuthor), + action: () => { + isFollowed? account?.actions.removeFollow(note()?.post.pubkey) : account?.actions.addFollow(note()?.post.pubkey); + props.onClose() + }, + icon: 'default_avatar', + }, { label: isMuted ? intl.formatMessage(tActions.noteContext.unmuteAuthor) : intl.formatMessage(tActions.noteContext.muteAuthor), action: () => { @@ -258,7 +267,6 @@ const NoteContextMenu: Component<{ }} onAbort={() => setConfirmMuteUser(false)} /> -