ai/at
1
0
Files
at/ios/patching/023-social-app-ios-disable-dm.patch
2026-03-22 12:43:32 +09:00

80 lines
3.0 KiB
Diff

--- a/src/view/shell/bottom-bar/BottomBar.tsx 2026-03-22 12:16:35
+++ b/src/view/shell/bottom-bar/BottomBar.tsx 2026-03-22 12:17:01
@@ -199,40 +199,42 @@
accessibilityLabel={_(msg`Search`)}
accessibilityHint=""
/>
- <Btn
- testID="bottomBarMessagesBtn"
- icon={
- isAtMessages ? (
- <MessageFilled
- width={iconWidth - 1}
- style={[styles.ctrlIcon, t.atoms.text, styles.feedsIcon]}
- />
- ) : (
- <Message
- width={iconWidth - 1}
- style={[styles.ctrlIcon, t.atoms.text, styles.feedsIcon]}
- />
- )
- }
- onPress={onPressMessages}
- notificationCount={
- aa.flags.chatDisabled ? undefined : numUnreadMessages.numUnread
- }
- hasNew={aa.flags.chatDisabled ? false : numUnreadMessages.hasNew}
- accessible={true}
- accessibilityRole="tab"
- accessibilityLabel={_(msg`Chat`)}
- accessibilityHint={
- !aa.flags.chatDisabled && numUnreadMessages.count > 0
- ? _(
- plural(numUnreadMessages.numUnread ?? 0, {
- one: '# unread item',
- other: '# unread items',
- }),
- )
- : ''
- }
- />
+ {!currentAccount?.isSelfHosted && (
+ <Btn
+ testID="bottomBarMessagesBtn"
+ icon={
+ isAtMessages ? (
+ <MessageFilled
+ width={iconWidth - 1}
+ style={[styles.ctrlIcon, t.atoms.text, styles.feedsIcon]}
+ />
+ ) : (
+ <Message
+ width={iconWidth - 1}
+ style={[styles.ctrlIcon, t.atoms.text, styles.feedsIcon]}
+ />
+ )
+ }
+ onPress={onPressMessages}
+ notificationCount={
+ aa.flags.chatDisabled ? undefined : numUnreadMessages.numUnread
+ }
+ hasNew={aa.flags.chatDisabled ? false : numUnreadMessages.hasNew}
+ accessible={true}
+ accessibilityRole="tab"
+ accessibilityLabel={_(msg`Chat`)}
+ accessibilityHint={
+ !aa.flags.chatDisabled && numUnreadMessages.count > 0
+ ? _(
+ plural(numUnreadMessages.numUnread ?? 0, {
+ one: '# unread item',
+ other: '# unread items',
+ }),
+ )
+ : ''
+ }
+ />
+ )}
<Btn
testID="bottomBarNotificationsBtn"
icon={