Skip to content

Commit 7857d8c

Browse files
szuperazisekovanic
andauthored
fix: update stream-chat-js version to fix pagination for shadow blocked messages (#3564)
## 🎯 Goal <!-- Describe why we are making this change --> ## 🛠 Implementation details <!-- Provide a description of the implementation --> ## 🎨 UI Changes <!-- Add relevant screenshots --> <details> <summary>iOS</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> <details> <summary>Android</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> ## 🧪 Testing <!-- Explain how this change can be tested (or why it can't be tested) --> ## ☑️ Checklist - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [ ] PR targets the `develop` branch - [ ] Documentation is updated - [ ] New code is tested in main example apps, including all possible scenarios - [ ] SampleApp iOS and Android - [ ] Expo iOS and Android --------- Co-authored-by: Ivan Sekovanikj <ivan.sekovanikj@getstream.io>
1 parent 22cceb3 commit 7857d8c

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/changelog-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
node-version: ${{ matrix.node-version }}
2020
- uses: actions/checkout@v2
2121
with:
22-
ref: develop
22+
ref: V8-release
2323
# pulls all commits (needed for semantic release to correctly version)
2424
fetch-depth: '0'
2525
# pulls all tags (needed for semantic release to correctly version)
@@ -42,7 +42,7 @@ jobs:
4242
- name: Generate Changelog
4343
id: generate_changelog
4444
run: |
45-
GITHUB_REF='refs/heads/develop' yarn extract-changelog
45+
GITHUB_REF='refs/heads/V8-release' yarn extract-changelog
4646
echo "Changelog script finished! Checking if there are changes..."
4747
CHANGELOG_PREVIEW=$(cat NEXT_RELEASE_CHANGELOG.md || true)
4848

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"path": "0.12.7",
8383
"react-native-markdown-package": "1.8.2",
8484
"react-native-url-polyfill": "^2.0.0",
85-
"stream-chat": "^9.36.1",
85+
"stream-chat": "^9.41.1",
8686
"use-sync-external-store": "^1.5.0"
8787
},
8888
"peerDependencies": {

package/src/store/OfflineDB.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AbstractOfflineDB, StreamChat } from 'stream-chat';
1+
import { AbstractOfflineDB, ExecuteBatchDBQueriesType, StreamChat } from 'stream-chat';
22
import type {
33
DBGetAppSettingsType,
44
DBGetChannelsForQueryType,
@@ -67,6 +67,13 @@ export class OfflineDB extends AbstractOfflineDB {
6767

6868
addPendingTask = api.addPendingTask;
6969

70+
// This is needed as compatibility for a V9 only feature.
71+
updatePendingTask = (): Promise<ExecuteBatchDBQueriesType> => {
72+
return new Promise((resolve) => {
73+
resolve([]);
74+
});
75+
};
76+
7077
deletePendingTask = api.deletePendingTask;
7178

7279
deleteReaction = api.deleteReaction;

package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8335,10 +8335,10 @@ stdin-discarder@^0.2.2:
83358335
resolved "https://registry.yarnpkg.com/stdin-discarder/-/stdin-discarder-0.2.2.tgz#390037f44c4ae1a1ae535c5fe38dc3aba8d997be"
83368336
integrity sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==
83378337

8338-
stream-chat@^9.36.1:
8339-
version "9.36.1"
8340-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.36.1.tgz#b452369fa933c156fa57f52a8c3a276c36fc5de7"
8341-
integrity sha512-bui8a9kjqd80LXXMbvIzrdg2FL7GIgU/Z/reliPgdstIe3HgLfECS8wIAJSySULemWoMNTGjAy8+o9oOYH2Plg==
8338+
stream-chat@^9.41.1:
8339+
version "9.41.1"
8340+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.41.1.tgz#a877c8aa800d78b497eec2fad636345d4422309c"
8341+
integrity sha512-W8zjfINYol2UtdRMz2t/NN2GyjDrvb4pJgKmhtuRYzCY1u0Cjezcsu5OCNgyAM0QsenlY6tRqnvAU8Qam5R49Q==
83428342
dependencies:
83438343
"@types/jsonwebtoken" "^9.0.8"
83448344
"@types/ws" "^8.5.14"

0 commit comments

Comments
 (0)