Skip to content

Commit 3378113

Browse files
authored
Merge pull request #1487 from GetStream/develop
Next release
2 parents accd0fa + 635ddbb commit 3378113

File tree

6 files changed

+7
-19
lines changed

6 files changed

+7
-19
lines changed

docusaurus/docs/reactnative/guides/push_notifications_v2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ To update the payload for Android to have notification payload also, you can add
394394
const client = StreamChat.getInstance(‘api_key’, ‘api_secret’);
395395
const notification_template = `{
396396
"title": "New message from {{ sender.name }}",
397-
"body": "{{ truncate message.text 2000 }}"
397+
"body": "{{ truncate message.text 2000 }}",
398398
"click_action": "OPEN_ACTIVITY_1",
399399
"sound": "default"
400400
}`;

examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
CLANG_ENABLE_MODULES = YES;
515515
CODE_SIGN_ENTITLEMENTS = SampleApp/SampleAppDebug.entitlements;
516516
CODE_SIGN_IDENTITY = "iPhone Developer";
517-
CURRENT_PROJECT_VERSION = 120;
517+
CURRENT_PROJECT_VERSION = 121;
518518
DEVELOPMENT_TEAM = EHV7XZLAHA;
519519
ENABLE_BITCODE = NO;
520520
INFOPLIST_FILE = SampleApp/Info.plist;
@@ -545,7 +545,7 @@
545545
CODE_SIGN_ENTITLEMENTS = SampleApp/SampleAppRelease.entitlements;
546546
CODE_SIGN_IDENTITY = "iPhone Distribution";
547547
CODE_SIGN_STYLE = Manual;
548-
CURRENT_PROJECT_VERSION = 120;
548+
CURRENT_PROJECT_VERSION = 121;
549549
DEVELOPMENT_TEAM = EHV7XZLAHA;
550550
INFOPLIST_FILE = SampleApp/Info.plist;
551551
LD_RUNPATH_SEARCH_PATHS = (

examples/SampleApp/ios/SampleApp/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.7.0</string>
20+
<string>1.7.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>120</string>
24+
<string>121</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true />
2727
<key>NSAppTransportSecurity</key>

examples/SampleApp/ios/SampleAppTests/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.7.0</string>
18+
<string>1.7.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>120</string>
22+
<string>121</string>
2323
</dict>
2424
</plist>

package/src/contexts/__tests__/index.test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
useChannelsContext,
1010
useChatContext,
1111
useImageGalleryContext,
12-
useMessageContext,
1312
useMessageOverlayContext,
1413
useMessagesContext,
1514
useOverlayContext,
@@ -75,10 +74,6 @@ describe('contexts hooks in a component throws an error with message when not wr
7574
useImageGalleryContext,
7675
`The useImageGalleryContext hook was called outside the ImageGalleryContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,
7776
],
78-
[
79-
useMessageContext,
80-
`The useMessageContext hook was called outside of the MessageContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,
81-
],
8277
[
8378
useMessageOverlayContext,
8479
`The useMessageOverlayContext hook was called outside the MessageOverlayContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,

package/src/contexts/messageContext/MessageContext.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
1414
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
1515

1616
import { getDisplayName } from '../utils/getDisplayName';
17-
import { isTestEnvironment } from '../utils/isTestEnvironment';
1817

1918
export type Alignment = 'right' | 'left';
2019

@@ -129,12 +128,6 @@ export const useMessageContext = <
129128
MessageContext,
130129
) as unknown as MessageContextValue<StreamChatGenerics>;
131130

132-
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
133-
throw new Error(
134-
`The useMessageContext hook was called outside of the MessageContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,
135-
);
136-
}
137-
138131
return contextValue;
139132
};
140133

0 commit comments

Comments
 (0)