add chat
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
--- a/src/lib/constants.ts 2026-03-15 19:17:45
|
||||
+++ b/src/lib/constants.ts 2026-03-15 19:16:32
|
||||
--- a/src/lib/constants.ts 2026-03-22 12:31:56
|
||||
+++ b/src/lib/constants.ts 2026-03-22 12:29:49
|
||||
@@ -7,12 +7,12 @@
|
||||
export const LOCAL_DEV_SERVICE =
|
||||
Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583'
|
||||
@@ -95,7 +95,7 @@
|
||||
+
|
||||
+export function getDmServiceHeaders(serviceUrl?: string) {
|
||||
+ const chatDid = isSelfHostedService(serviceUrl)
|
||||
+ ? CHAT_PROXY_DID
|
||||
+ ? PUBLIC_APPVIEW_DID
|
||||
+ : OFFICIAL_CHAT_DID
|
||||
+ return {
|
||||
+ 'atproto-proxy': `${chatDid}#bsky_chat`,
|
||||
@@ -116,8 +116,6 @@
|
||||
community: `https://bsky.social/about/support/community-guidelines`,
|
||||
communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`,
|
||||
}
|
||||
diff --git a/src/lib/api/feed/home.ts b/src/lib/api/feed/home.ts
|
||||
index 7a0d72d91..93554dc3e 100644
|
||||
--- a/src/lib/api/feed/home.ts
|
||||
+++ b/src/lib/api/feed/home.ts
|
||||
@@ -45,7 +45,7 @@ export class HomeFeedAPI implements FeedAPI {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/src/view/shell/bottom-bar/BottomBar.tsx
|
||||
+++ b/src/view/shell/bottom-bar/BottomBar.tsx
|
||||
@@ -196,38 +196,40 @@
|
||||
--- 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=""
|
||||
/>
|
||||
@@ -20,13 +20,15 @@
|
||||
- )
|
||||
- }
|
||||
- onPress={onPressMessages}
|
||||
- notificationCount={numUnreadMessages.numUnread}
|
||||
- hasNew={numUnreadMessages.hasNew}
|
||||
- notificationCount={
|
||||
- aa.flags.chatDisabled ? undefined : numUnreadMessages.numUnread
|
||||
- }
|
||||
- hasNew={aa.flags.chatDisabled ? false : numUnreadMessages.hasNew}
|
||||
- accessible={true}
|
||||
- accessibilityRole="tab"
|
||||
- accessibilityLabel={_(msg`Chat`)}
|
||||
- accessibilityHint={
|
||||
- numUnreadMessages.count > 0
|
||||
- !aa.flags.chatDisabled && numUnreadMessages.count > 0
|
||||
- ? _(
|
||||
- plural(numUnreadMessages.numUnread ?? 0, {
|
||||
- one: '# unread item',
|
||||
@@ -36,7 +38,7 @@
|
||||
- : ''
|
||||
- }
|
||||
- />
|
||||
+ {currentAccount?.isSelfHosted && (
|
||||
+ {!currentAccount?.isSelfHosted && (
|
||||
+ <Btn
|
||||
+ testID="bottomBarMessagesBtn"
|
||||
+ icon={
|
||||
@@ -53,13 +55,15 @@
|
||||
+ )
|
||||
+ }
|
||||
+ onPress={onPressMessages}
|
||||
+ notificationCount={numUnreadMessages.numUnread}
|
||||
+ hasNew={numUnreadMessages.hasNew}
|
||||
+ notificationCount={
|
||||
+ aa.flags.chatDisabled ? undefined : numUnreadMessages.numUnread
|
||||
+ }
|
||||
+ hasNew={aa.flags.chatDisabled ? false : numUnreadMessages.hasNew}
|
||||
+ accessible={true}
|
||||
+ accessibilityRole="tab"
|
||||
+ accessibilityLabel={_(msg`Chat`)}
|
||||
+ accessibilityHint={
|
||||
+ numUnreadMessages.count > 0
|
||||
+ !aa.flags.chatDisabled && numUnreadMessages.count > 0
|
||||
+ ? _(
|
||||
+ plural(numUnreadMessages.numUnread ?? 0, {
|
||||
+ one: '# unread item',
|
||||
|
||||
Reference in New Issue
Block a user