ai/at
1
0
Files
at/ios/patching/023-social-app-ios-disable-dm.patch
2026-01-10 14:39:29 +09:00

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={