Skip to content

Commit bd11b53

Browse files
authored
Merge pull request #1178 from GetStream/mark-read-listener
add channel preview listener for mark read notification
2 parents ccd15fd + 505baa8 commit bd11b53

File tree

11 files changed

+103
-51
lines changed

11 files changed

+103
-51
lines changed

examples/capacitor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"react": "link:../../node_modules/react",
1212
"react-dom": "link:../../node_modules/react-dom",
1313
"react-scripts": "3.4.1",
14-
"stream-chat": "4.0.0",
14+
"stream-chat": "4.2.0",
1515
"stream-chat-react": "link:../../",
1616
"typescript": "4.3.5"
1717
},

examples/capacitor/yarn.lock

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,14 @@
15401540
resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.3.tgz#5405ee8e444ed212db44e79351f0c70a582aae25"
15411541
integrity sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw==
15421542

1543+
"@sindresorhus/transliterate@^1.4.0":
1544+
version "1.4.0"
1545+
resolved "https://registry.yarnpkg.com/@sindresorhus/transliterate/-/transliterate-1.4.0.tgz#4648facf68e665147281dce4207a89374a3725b7"
1546+
integrity sha512-4X91xgzgEnD96QAVmn3YXl14FRhZI8eyWVP7MwYr33kMdkLgoHeCOi7+Ad2Uar+0kpbfiDHW1qUXioJjcXnwPg==
1547+
dependencies:
1548+
escape-string-regexp "^5.0.0"
1549+
lodash.deburr "^4.1.0"
1550+
15431551
"@svgr/babel-plugin-add-jsx-attribute@^4.2.0":
15441552
version "4.2.0"
15451553
resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz#dadcb6218503532d6884b210e7f3c502caaa44b1"
@@ -4706,6 +4714,11 @@ escape-string-regexp@^4.0.0:
47064714
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
47074715
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
47084716

4717+
escape-string-regexp@^5.0.0:
4718+
version "5.0.0"
4719+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
4720+
integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
4721+
47094722
escodegen@^1.11.0, escodegen@^1.9.1:
47104723
version "1.14.3"
47114724
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
@@ -7629,6 +7642,11 @@ lodash.debounce@^4.0.8:
76297642
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
76307643
integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
76317644

7645+
lodash.deburr@^4.1.0:
7646+
version "4.1.0"
7647+
resolved "https://registry.yarnpkg.com/lodash.deburr/-/lodash.deburr-4.1.0.tgz#ddb1bbb3ef07458c0177ba07de14422cb033ff9b"
7648+
integrity sha1-3bG7s+8HRYwBd7oH3hRCLLAz/5s=
7649+
76327650
lodash.includes@^4.3.0:
76337651
version "4.3.0"
76347652
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
@@ -10101,10 +10119,10 @@ react-fast-compare@^3.0.1, react-fast-compare@^3.2.0:
1010110119
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
1010210120
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
1010310121

10104-
10105-
version "1.1.5"
10106-
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.5.tgz#3e7bba5bd63736747df98eb308ed1a8ad0012387"
10107-
integrity sha512-nYOA/BvyQU92byIJaA5p/mQtBsXCLQjzdM2KTJNQFapxIypXa6U49RaqUQCQ+N9xDTAir372kVDFQfDoEOoGmA==
10122+
10123+
version "1.1.7"
10124+
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.7.tgz#4888f7fecde43a0a67bdfac61af4a3ad0c7c8087"
10125+
integrity sha512-Y0gI0PnJDWqofxJosGNw2GnyAexsx1QTlkikP5o0SvkrZHySaL28GL5LZ8QMXolOvqErkgnREZQmsTsL/5CjTg==
1010810126
dependencies:
1010910127
react-dropzone "11.3.4"
1011010128

@@ -11407,10 +11425,10 @@ stream-browserify@^2.0.1:
1140711425
version "0.0.0"
1140811426
uid ""
1140911427

11410-
stream-chat@4.0.0:
11411-
version "4.0.0"
11412-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-4.0.0.tgz#7aec92015c8d1a2ee1344ca32b2f51a70cace600"
11413-
integrity sha512-u4oTd4d19E23t0IVj60G/DhJVNIEUUQt7SI8Zx8Rhum9GLfQ8VwXsgcJYUsLHaiIjpMVjttyoYmR/F8RP8f3+w==
11428+
stream-chat@4.2.0:
11429+
version "4.2.0"
11430+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-4.2.0.tgz#1ccf93d2e9e79708d876eabd421c5008beaf6da7"
11431+
integrity sha512-wfm6VwXfLSTBO1f4JN6J5SvRV8fFza0Wxqq8zcW1acLJtMAVZ2+vfLOwws86PKexRNeoe8dHSC/sIRhoAEpr+Q==
1141411432
dependencies:
1141511433
"@babel/runtime" "^7.13.10"
1141611434
"@types/jsonwebtoken" "^8.5.0"

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"react-app-polyfill": "^1.0.2",
1515
"react-dom": "link:../../node_modules/react-dom",
1616
"react-scripts": "2.1.4",
17-
"stream-chat": "4.0.0",
17+
"stream-chat": "4.2.0",
1818
"stream-chat-react": "link:../../"
1919
}
2020
}

examples/nextjs/yarn.lock

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,14 @@
12531253
resolved "https://registry.yarnpkg.com/@rgrove/parse-xml/-/parse-xml-3.0.0.tgz#29d45eadeb6c9a701038cfb9fab2356a7bdc71d5"
12541254
integrity sha512-GFGDywRwGbuGq9yeL8wTjjLOsZ5Ps4O5tQ71eDcAfaZrZeA7Oe8QJzrnmFgplWtnoaBIBaFBB3n5Ht9iU4jLLw==
12551255

1256+
"@sindresorhus/transliterate@^1.4.0":
1257+
version "1.4.0"
1258+
resolved "https://registry.yarnpkg.com/@sindresorhus/transliterate/-/transliterate-1.4.0.tgz#4648facf68e665147281dce4207a89374a3725b7"
1259+
integrity sha512-4X91xgzgEnD96QAVmn3YXl14FRhZI8eyWVP7MwYr33kMdkLgoHeCOi7+Ad2Uar+0kpbfiDHW1qUXioJjcXnwPg==
1260+
dependencies:
1261+
escape-string-regexp "^5.0.0"
1262+
lodash.deburr "^4.1.0"
1263+
12561264
"@svgr/babel-plugin-add-jsx-attribute@^4.2.0":
12571265
version "4.2.0"
12581266
resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz#dadcb6218503532d6884b210e7f3c502caaa44b1"
@@ -4143,6 +4151,11 @@ escape-string-regexp@^4.0.0:
41434151
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
41444152
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
41454153

4154+
escape-string-regexp@^5.0.0:
4155+
version "5.0.0"
4156+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
4157+
integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
4158+
41464159
escodegen@^1.9.1:
41474160
version "1.14.3"
41484161
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
@@ -7087,6 +7100,11 @@ lodash.debounce@^4.0.8:
70877100
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
70887101
integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
70897102

7103+
lodash.deburr@^4.1.0:
7104+
version "4.1.0"
7105+
resolved "https://registry.yarnpkg.com/lodash.deburr/-/lodash.deburr-4.1.0.tgz#ddb1bbb3ef07458c0177ba07de14422cb033ff9b"
7106+
integrity sha1-3bG7s+8HRYwBd7oH3hRCLLAz/5s=
7107+
70907108
lodash.includes@^4.3.0:
70917109
version "4.3.0"
70927110
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
@@ -9539,10 +9557,10 @@ react-fast-compare@^3.0.1, react-fast-compare@^3.2.0:
95399557
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
95409558
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
95419559

9542-
9543-
version "1.1.5"
9544-
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.5.tgz#3e7bba5bd63736747df98eb308ed1a8ad0012387"
9545-
integrity sha512-nYOA/BvyQU92byIJaA5p/mQtBsXCLQjzdM2KTJNQFapxIypXa6U49RaqUQCQ+N9xDTAir372kVDFQfDoEOoGmA==
9560+
9561+
version "1.1.7"
9562+
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.7.tgz#4888f7fecde43a0a67bdfac61af4a3ad0c7c8087"
9563+
integrity sha512-Y0gI0PnJDWqofxJosGNw2GnyAexsx1QTlkikP5o0SvkrZHySaL28GL5LZ8QMXolOvqErkgnREZQmsTsL/5CjTg==
95469564
dependencies:
95479565
react-dropzone "11.3.4"
95489566

@@ -10735,10 +10753,10 @@ stream-browserify@^2.0.1:
1073510753
version "0.0.0"
1073610754
uid ""
1073710755

10738-
stream-chat@4.0.0:
10739-
version "4.0.0"
10740-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-4.0.0.tgz#7aec92015c8d1a2ee1344ca32b2f51a70cace600"
10741-
integrity sha512-u4oTd4d19E23t0IVj60G/DhJVNIEUUQt7SI8Zx8Rhum9GLfQ8VwXsgcJYUsLHaiIjpMVjttyoYmR/F8RP8f3+w==
10756+
stream-chat@4.2.0:
10757+
version "4.2.0"
10758+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-4.2.0.tgz#1ccf93d2e9e79708d876eabd421c5008beaf6da7"
10759+
integrity sha512-wfm6VwXfLSTBO1f4JN6J5SvRV8fFza0Wxqq8zcW1acLJtMAVZ2+vfLOwws86PKexRNeoe8dHSC/sIRhoAEpr+Q==
1074210760
dependencies:
1074310761
"@babel/runtime" "^7.13.10"
1074410762
"@types/jsonwebtoken" "^8.5.0"

examples/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"react": "link:../../node_modules/react",
88
"react-dom": "link:../../node_modules/react-dom",
99
"react-scripts": "3.4.1",
10-
"stream-chat": "4.0.0",
10+
"stream-chat": "4.2.0",
1111
"stream-chat-react": "link:../../",
1212
"typescript": "4.3.5"
1313
},

examples/typescript/yarn.lock

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,14 @@
14261426
resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.3.tgz#5405ee8e444ed212db44e79351f0c70a582aae25"
14271427
integrity sha512-DetpxZw1fzPD5xUBrIAoplLChO2VB8DlL5Gg+I1IR9b2wPqYIca2WSUxL5g1vLeR4MsQq1NeWriXAVffV+U1Fw==
14281428

1429+
"@sindresorhus/transliterate@^1.4.0":
1430+
version "1.4.0"
1431+
resolved "https://registry.yarnpkg.com/@sindresorhus/transliterate/-/transliterate-1.4.0.tgz#4648facf68e665147281dce4207a89374a3725b7"
1432+
integrity sha512-4X91xgzgEnD96QAVmn3YXl14FRhZI8eyWVP7MwYr33kMdkLgoHeCOi7+Ad2Uar+0kpbfiDHW1qUXioJjcXnwPg==
1433+
dependencies:
1434+
escape-string-regexp "^5.0.0"
1435+
lodash.deburr "^4.1.0"
1436+
14291437
"@svgr/babel-plugin-add-jsx-attribute@^4.2.0":
14301438
version "4.2.0"
14311439
resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz#dadcb6218503532d6884b210e7f3c502caaa44b1"
@@ -4518,6 +4526,11 @@ escape-string-regexp@^4.0.0:
45184526
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
45194527
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
45204528

4529+
escape-string-regexp@^5.0.0:
4530+
version "5.0.0"
4531+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8"
4532+
integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==
4533+
45214534
escodegen@^1.11.0, escodegen@^1.9.1:
45224535
version "1.14.3"
45234536
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
@@ -4944,23 +4957,11 @@ fast-json-stable-stringify@^2.0.0:
49444957
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
49454958
integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
49464959

4947-
fast-levenshtein@^3.0.0:
4948-
version "3.0.0"
4949-
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-3.0.0.tgz#37b899ae47e1090e40e3fd2318e4d5f0142ca912"
4950-
integrity sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ==
4951-
dependencies:
4952-
fastest-levenshtein "^1.0.7"
4953-
49544960
fast-levenshtein@~2.0.6:
49554961
version "2.0.6"
49564962
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
49574963
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
49584964

4959-
fastest-levenshtein@^1.0.7:
4960-
version "1.0.12"
4961-
resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.12.tgz#9990f7d3a88cc5a9ffd1f1745745251700d497e2"
4962-
integrity sha512-On2N+BpYJ15xIC974QNVuYGMOlEVt4s0EOI3wwMqOmK1fdDY+FN/zltPV8vosq4ad4c/gJ1KHScUn/6AWIgiow==
4963-
49644965
faye-websocket@^0.10.0:
49654966
version "0.10.0"
49664967
resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4"
@@ -7405,6 +7406,11 @@ lodash.debounce@^4.0.8:
74057406
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
74067407
integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
74077408

7409+
lodash.deburr@^4.1.0:
7410+
version "4.1.0"
7411+
resolved "https://registry.yarnpkg.com/lodash.deburr/-/lodash.deburr-4.1.0.tgz#ddb1bbb3ef07458c0177ba07de14422cb033ff9b"
7412+
integrity sha1-3bG7s+8HRYwBd7oH3hRCLLAz/5s=
7413+
74087414
lodash.includes@^4.3.0:
74097415
version "4.3.0"
74107416
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
@@ -9834,10 +9840,10 @@ react-fast-compare@^3.0.1, react-fast-compare@^3.2.0:
98349840
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
98359841
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
98369842

9837-
9838-
version "1.1.6"
9839-
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.6.tgz#84033e15bd3d1b34b504208e9638692804a279ee"
9840-
integrity sha512-pYvUXSFPFpZk/yQ+TJihzlZ45PCl0CmPcLJp9zdDHkzZplppqrxvUoQlEQRgTaaHpwkiSgdXh/UgCx521PR8uA==
9843+
9844+
version "1.1.7"
9845+
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.7.tgz#4888f7fecde43a0a67bdfac61af4a3ad0c7c8087"
9846+
integrity sha512-Y0gI0PnJDWqofxJosGNw2GnyAexsx1QTlkikP5o0SvkrZHySaL28GL5LZ8QMXolOvqErkgnREZQmsTsL/5CjTg==
98419847
dependencies:
98429848
react-dropzone "11.3.4"
98439849

@@ -11129,10 +11135,10 @@ stream-browserify@^2.0.1:
1112911135
version "0.0.0"
1113011136
uid ""
1113111137

11132-
stream-chat@4.0.0:
11133-
version "4.0.0"
11134-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-4.0.0.tgz#7aec92015c8d1a2ee1344ca32b2f51a70cace600"
11135-
integrity sha512-u4oTd4d19E23t0IVj60G/DhJVNIEUUQt7SI8Zx8Rhum9GLfQ8VwXsgcJYUsLHaiIjpMVjttyoYmR/F8RP8f3+w==
11138+
stream-chat@4.2.0:
11139+
version "4.2.0"
11140+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-4.2.0.tgz#1ccf93d2e9e79708d876eabd421c5008beaf6da7"
11141+
integrity sha512-wfm6VwXfLSTBO1f4JN6J5SvRV8fFza0Wxqq8zcW1acLJtMAVZ2+vfLOwws86PKexRNeoe8dHSC/sIRhoAEpr+Q==
1113611142
dependencies:
1113711143
"@babel/runtime" "^7.13.10"
1113811144
"@types/jsonwebtoken" "^8.5.0"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"pretty-bytes": "^5.4.1",
4444
"prop-types": "^15.7.2",
4545
"react-fast-compare": "^3.2.0",
46-
"react-file-utils": "1.1.6",
46+
"react-file-utils": "1.1.7",
4747
"react-images": "1.2.0-beta.7",
4848
"react-is": "^17.0.1",
4949
"react-markdown": "^5.0.3",
@@ -155,7 +155,7 @@
155155
"rollup-plugin-visualizer": "^4.2.0",
156156
"sass": "^1.29.0",
157157
"sass-loader": "^10.1.0",
158-
"stream-chat": "4.0.0",
158+
"stream-chat": "4.2.0",
159159
"style-loader": "^2.0.0",
160160
"stylelint": "^13.8.0",
161161
"stylelint-config-recommended-scss": "^4.2.0",

src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ const ChannelInner = <
877877
const channelClass = customClasses?.channel || 'str-chat-channel';
878878
const windowsEmojiClass =
879879
useImageFlagEmojisOnWindows && navigator.userAgent.match(/Win/)
880-
? ' str-chat--windows-flags'
880+
? 'str-chat--windows-flags'
881881
: '';
882882

883883
if (state.error) {

src/components/ChannelPreview/ChannelPreview.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ export const ChannelPreview = <
104104
const isActive = activeChannel?.cid === channel.cid;
105105
const { muted } = useIsChannelMuted(channel);
106106

107+
useEffect(() => {
108+
const handleEvent = (event: Event) => {
109+
if (!event.cid) return setUnread(0);
110+
if (channel.cid === event.cid) setUnread(0);
111+
};
112+
113+
client.on('notification.mark_read', handleEvent);
114+
return () => client.off('notification.mark_read', handleEvent);
115+
}, []);
116+
107117
useEffect(() => {
108118
if (isActive || muted) {
109119
setUnread(0);

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '6.7.1';
1+
export const version = '6.7.2';

0 commit comments

Comments
 (0)