76 lines
2.7 KiB
Diff
76 lines
2.7 KiB
Diff
--- a/src/view/shell/bottom-bar/BottomBar.tsx
|
|
+++ b/src/view/shell/bottom-bar/BottomBar.tsx
|
|
@@ -198,38 +198,40 @@
|
|
accessibilityLabel={_(msg`Search`)}
|
|
accessibilityHint=""
|
|
/>
|
|
- <Btn
|
|
- testID="bottomBarMessagesBtn"
|
|
- icon={
|
|
- isAtMessages ? (
|
|
- <MessageFilled
|
|
- width={iconWidth - 1}
|
|
- style={[styles.ctrlIcon, pal.text, styles.feedsIcon]}
|
|
- />
|
|
- ) : (
|
|
- <Message
|
|
- width={iconWidth - 1}
|
|
- style={[styles.ctrlIcon, pal.text, styles.feedsIcon]}
|
|
- />
|
|
- )
|
|
- }
|
|
- onPress={onPressMessages}
|
|
- notificationCount={numUnreadMessages.numUnread}
|
|
- hasNew={numUnreadMessages.hasNew}
|
|
- accessible={true}
|
|
- accessibilityRole="tab"
|
|
- accessibilityLabel={_(msg`Chat`)}
|
|
- accessibilityHint={
|
|
- numUnreadMessages.count > 0
|
|
- ? _(
|
|
- msg`${plural(numUnreadMessages.numUnread ?? 0, {
|
|
- one: '# unread item',
|
|
- other: '# unread items',
|
|
- })}` || '',
|
|
- )
|
|
- : ''
|
|
- }
|
|
- />
|
|
+ {!currentAccount?.isSelfHosted && (
|
|
+ <Btn
|
|
+ testID="bottomBarMessagesBtn"
|
|
+ icon={
|
|
+ isAtMessages ? (
|
|
+ <MessageFilled
|
|
+ width={iconWidth - 1}
|
|
+ style={[styles.ctrlIcon, pal.text, styles.feedsIcon]}
|
|
+ />
|
|
+ ) : (
|
|
+ <Message
|
|
+ width={iconWidth - 1}
|
|
+ style={[styles.ctrlIcon, pal.text, styles.feedsIcon]}
|
|
+ />
|
|
+ )
|
|
+ }
|
|
+ onPress={onPressMessages}
|
|
+ notificationCount={numUnreadMessages.numUnread}
|
|
+ hasNew={numUnreadMessages.hasNew}
|
|
+ accessible={true}
|
|
+ accessibilityRole="tab"
|
|
+ accessibilityLabel={_(msg`Chat`)}
|
|
+ accessibilityHint={
|
|
+ numUnreadMessages.count > 0
|
|
+ ? _(
|
|
+ msg`${plural(numUnreadMessages.numUnread ?? 0, {
|
|
+ one: '# unread item',
|
|
+ other: '# unread items',
|
|
+ })}` || '',
|
|
+ )
|
|
+ : ''
|
|
+ }
|
|
+ />
|
|
+ )}
|
|
<Btn
|
|
testID="bottomBarNotificationsBtn"
|
|
icon={
|