Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
ffb1e92
ddp client basic
Rohit3523 Oct 11, 2025
28cd8e7
Some more changes
Rohit3523 Nov 14, 2025
41760c6
Some rest api changes
Rohit3523 Nov 14, 2025
ed22661
some fix
Rohit3523 Nov 14, 2025
b8457df
more changes
Rohit3523 Nov 14, 2025
bb68c79
some more fix
Rohit3523 Nov 14, 2025
3fa1fd8
lock file fix
Rohit3523 Nov 14, 2025
5a4149c
some changes
Rohit3523 Nov 14, 2025
2cac93c
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jan 12, 2026
984b0fa
lock file fix
Rohit3523 Jan 12, 2026
d0c792c
import fix
Rohit3523 Jan 12, 2026
f5a4e27
partially fixed
Rohit3523 Jan 12, 2026
e36d477
Merge branch 'develop' into feat-ddp-client
Rohit3523 Mar 6, 2026
73bcb05
lock
Rohit3523 Mar 8, 2026
348f2e0
more fix
Rohit3523 Mar 9, 2026
f7ca44b
added resolutions
Rohit3523 Mar 9, 2026
517a4cd
more changes
Rohit3523 Mar 9, 2026
80130ec
more type fix
Rohit3523 Mar 9, 2026
540a705
more ts fix
Rohit3523 Mar 9, 2026
f9c01e9
more
Rohit3523 Mar 9, 2026
5f34fc0
some more
Rohit3523 Mar 10, 2026
c222e1e
more
Rohit3523 Mar 11, 2026
a5f04d7
local map
Rohit3523 Mar 12, 2026
b1409da
Merge branch 'develop' into feat-ddp-client
Rohit3523 Apr 14, 2026
02a9f69
Merge branch 'develop' into feat-ddp-client
Rohit3523 Apr 14, 2026
13fdf96
using live packages
Rohit3523 Apr 14, 2026
c88edb7
more changes
Rohit3523 Apr 17, 2026
6d04d2c
some more type fix
Rohit3523 Apr 17, 2026
d5bfc2d
Merge branch 'develop' into feat-ddp-client
Rohit3523 Apr 27, 2026
9b3077b
more api changse
Rohit3523 Apr 27, 2026
17c846b
more fix
Rohit3523 Apr 27, 2026
9d30eb5
making code rabbit happy
Rohit3523 Apr 27, 2026
efed2b5
revert few changes
Rohit3523 Apr 27, 2026
ef3942e
more revert
Rohit3523 Apr 27, 2026
6246907
more revert
Rohit3523 Apr 27, 2026
54b0cd4
more revert
Rohit3523 Apr 27, 2026
3e134cd
revert
Rohit3523 Apr 27, 2026
122ecff
more revert
Rohit3523 Apr 27, 2026
8892016
more revert
Rohit3523 Apr 27, 2026
ba3ee5f
format code
Rohit3523 Apr 27, 2026
8229607
lint fix
Rohit3523 Apr 27, 2026
41d88d2
final revert
Rohit3523 Apr 27, 2026
fc0fd21
login fix
Rohit3523 Apr 27, 2026
396b6de
login fix
Rohit3523 Apr 28, 2026
818ffd7
more fix
Rohit3523 Apr 28, 2026
b1b4acc
fix stream-notify-user
Rohit3523 Apr 28, 2026
27138b9
directory fix
Rohit3523 Apr 28, 2026
b653f22
Merge branch 'develop' into feat-ddp-client
Rohit3523 Apr 28, 2026
60d2fe9
added normalizeResponseError
Rohit3523 Apr 29, 2026
b36b84c
fix type error
Rohit3523 Apr 29, 2026
c68fa3c
Merge branch 'develop' into feat-ddp-client
Rohit3523 Apr 29, 2026
49d5946
added api typings
Rohit3523 Apr 29, 2026
b0a73a6
Merge branch 'develop' into feat-ddp-client
Rohit3523 Apr 30, 2026
21eded2
test fix
Rohit3523 Apr 30, 2026
a5b7d77
Merge branch 'develop' into feat-ddp-client
Rohit3523 May 1, 2026
4fc942e
fix more api typings
Rohit3523 May 1, 2026
c4b1385
fix test
Rohit3523 May 1, 2026
fbf9f5e
fix methodCall
Rohit3523 May 1, 2026
e4ab324
fix
Rohit3523 May 1, 2026
6e9606e
fix test
Rohit3523 May 1, 2026
b639714
fix star message loading
Rohit3523 May 1, 2026
d2ce24c
disable keyboard focus on e2e builds
Rohit3523 May 2, 2026
e735369
logout change
Rohit3523 May 3, 2026
0db8b2d
chore: format code and fix lint issues
Rohit3523 May 3, 2026
4f31ec1
rerun ci
Rohit3523 May 3, 2026
34d7df3
revert
Rohit3523 May 3, 2026
2b1a212
making code rabbit happy
Rohit3523 May 3, 2026
fd91290
Merge branch 'develop' into feat-ddp-client
Rohit3523 May 20, 2026
e1a5e85
changes
Rohit3523 May 20, 2026
7d1a82b
reconnection logic on background
Rohit3523 May 20, 2026
c260ded
lint fix
Rohit3523 May 20, 2026
dfb7910
Merge branch 'develop' into feat-ddp-client
Rohit3523 May 26, 2026
720dfa6
changes
Rohit3523 May 26, 2026
1340541
chore: format code and fix lint issues
Rohit3523 May 26, 2026
22c3145
lint fix
Rohit3523 May 26, 2026
ae22543
Merge branch 'feat-ddp-client' of https://github.com/RocketChat/Rocke…
Rohit3523 May 26, 2026
a323f62
rerun ci
Rohit3523 May 26, 2026
b362cf7
revert
Rohit3523 May 26, 2026
fbdd901
rerun
Rohit3523 May 26, 2026
6854fd5
revert
Rohit3523 May 26, 2026
6f28c41
Merge branch 'develop' into feat-ddp-client
Rohit3523 May 27, 2026
3c91c2a
coderabbit changes
Rohit3523 May 27, 2026
b13b356
code improvements
Rohit3523 May 27, 2026
34ac089
more improve
Rohit3523 May 27, 2026
de84c6f
changes
Rohit3523 May 28, 2026
2c2df79
move sdk changes to a patch
Rohit3523 May 28, 2026
4acde09
remove away from get and delete in sdk
Rohit3523 May 28, 2026
ff913aa
more changes
Rohit3523 May 28, 2026
d8639f4
test update
Rohit3523 May 28, 2026
8ca2abb
snapshot update
Rohit3523 May 28, 2026
eb293b4
added some more unit test
Rohit3523 May 28, 2026
cb9d3c0
more changes
Rohit3523 May 28, 2026
4638d99
patch for typing
Rohit3523 May 28, 2026
53c8106
Merge branch 'develop' into feat-ddp-client
Rohit3523 May 28, 2026
47aacde
Merge branch 'develop' into feat-ddp-client
Rohit3523 May 28, 2026
f2c0ec9
test fixed
Rohit3523 May 28, 2026
887f8c5
get settings test
Rohit3523 May 28, 2026
685eab3
chore: format code and fix lint issues
Rohit3523 May 28, 2026
84bcdc2
retrigger ci
Rohit3523 May 28, 2026
672146c
revert
Rohit3523 May 28, 2026
f26c241
Merge branch 'feat-ddp-client' of https://github.com/RocketChat/Rocke…
Rohit3523 May 28, 2026
c64f908
improvements
Rohit3523 May 29, 2026
0397c8c
test update
Rohit3523 May 29, 2026
c064270
changes
Rohit3523 May 30, 2026
1a15187
revert connect change
Rohit3523 May 30, 2026
305984d
fix
Rohit3523 May 30, 2026
0283cbb
fix for 2fa
Rohit3523 May 30, 2026
c8a415c
revert dm delete
Rohit3523 May 30, 2026
fccba68
test fix
Rohit3523 May 30, 2026
040ed90
chore: format code and fix lint issues
Rohit3523 May 30, 2026
8d69734
fix test
Rohit3523 May 30, 2026
6f7ed09
Merge branch 'feat-ddp-client' of https://github.com/RocketChat/Rocke…
Rohit3523 May 30, 2026
243e71c
test update
Rohit3523 May 31, 2026
945bbb8
improve
Rohit3523 May 31, 2026
7b9ad20
more test and changes
Rohit3523 Jun 1, 2026
948a8bb
another test
Rohit3523 Jun 1, 2026
f5b53c3
fix suggestion by coderabbit
Rohit3523 Jun 1, 2026
2d8bd30
more tests
Rohit3523 Jun 1, 2026
09fcfe4
remove todo test
Rohit3523 Jun 1, 2026
52711b0
fix eslint...
Rohit3523 Jun 1, 2026
5145c08
more changes
Rohit3523 Jun 1, 2026
2ad1957
fix
Rohit3523 Jun 1, 2026
af7f9dd
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jun 1, 2026
18777a4
test(deepLinking): update sdk mock from client.host to sdk.server
Rohit3523 Jun 5, 2026
2819208
deeplinking changes
Rohit3523 Jun 5, 2026
89f7205
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jun 5, 2026
4cf875f
Added mock device-info for versions to fix header snapshot
Rohit3523 Jun 8, 2026
73a85de
story update
Rohit3523 Jun 8, 2026
978429f
remove tserror
Rohit3523 Jun 8, 2026
ef96dee
Move back basicauthkey to fetch
Rohit3523 Jun 8, 2026
cf07ca2
Rename custom header to default header, matching file naming
Rohit3523 Jun 8, 2026
1d7ce92
chore: format code and fix lint issues
Rohit3523 Jun 8, 2026
f983538
add typed endpoint for media-calls.stateSignals
Rohit3523 Jun 8, 2026
4ac9b8a
Merge branch 'feat-ddp-client' of https://github.com/RocketChat/Rocke…
Rohit3523 Jun 8, 2026
0813eef
e2e test revert
Rohit3523 Jun 8, 2026
dd57f5f
sdk changes
Rohit3523 Jun 8, 2026
1cd9614
added restApi mock in voip
Rohit3523 Jun 8, 2026
76c1ad0
chore: format code and fix lint issues
Rohit3523 Jun 8, 2026
8f40f66
revert the changes of useAutoComplete
Rohit3523 Jun 8, 2026
8f2df16
Merge branch 'feat-ddp-client' of https://github.com/RocketChat/Rocke…
Rohit3523 Jun 8, 2026
66c648e
centralize auth headers in sdk
Rohit3523 Jun 8, 2026
e80a5bb
lint fix
Rohit3523 Jun 8, 2026
96661cb
making ts happy
Rohit3523 Jun 8, 2026
b70c1c9
added unit test to make sure header change for deeplink login and ser…
Rohit3523 Jun 9, 2026
a734133
fix anti pattern
Rohit3523 Jun 9, 2026
058fc2b
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jun 18, 2026
9c78c17
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 1, 2026
f59404c
lock file fix
Rohit3523 Jul 1, 2026
4a885b1
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 1, 2026
ec42521
changes
Rohit3523 Jul 1, 2026
3a6d6b4
Merge branch 'feat-ddp-client' of https://github.com/RocketChat/Rocke…
Rohit3523 Jul 1, 2026
e7d2642
More changes
Rohit3523 Jul 1, 2026
53fcdec
test lint fix
Rohit3523 Jul 1, 2026
c723a1b
more changes
Rohit3523 Jul 1, 2026
0cebd28
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 6, 2026
6acc6a3
lockfile update
Rohit3523 Jul 6, 2026
60b552b
fix: restore room reconnect/typing-cleanup via connection status list…
Rohit3523 Jul 6, 2026
78f590a
fix: log subscribeRoom failures instead of swallowing them
Rohit3523 Jul 6, 2026
1639639
chore: add edge-to-edge support on Android (#7157)
Rohit3523 Jul 6, 2026
d6427cd
fix: catch inquiry subscription rejection instead of letting it go un…
Rohit3523 Jul 6, 2026
4427675
fix: stop double-nesting stream-user-presence subscribe params
Rohit3523 Jul 6, 2026
21fedd6
fix: check /v1/login response via status field, not success
Rohit3523 Jul 6, 2026
310d921
fix: stop 2FA retry headers from leaking into concurrent requests
Rohit3523 Jul 6, 2026
a012e16
fix: stop the previous inquiry subscription before resubscribing
Rohit3523 Jul 6, 2026
e2487a3
chore: remove vestigial user param from sendAttachments
Rohit3523 Jul 6, 2026
0711725
fix: don't destroy the local upload record when mediaConfirm fails
Rohit3523 Jul 6, 2026
e94dea8
fix: log when Sdk.logout() times out instead of completing silently
Rohit3523 Jul 6, 2026
5ef4e80
test: cover the patched Connection reconnect/zombie-socket logic
Rohit3523 Jul 6, 2026
0dfdcb5
fix: add missing url field to IInvite and stop discarding its type
Rohit3523 Jul 6, 2026
fc662b6
chore: remove stray fix me comment above getDepartmentInfo
Rohit3523 Jul 6, 2026
d9b02f0
fix: guard optional cursor field and remove stale @ts-ignores
Rohit3523 Jul 6, 2026
10266f8
test: exercise logout() itself, not just removeServer
Rohit3523 Jul 6, 2026
216555e
Merge branch 'fix/ddp-9-connection-patch-tests' into fix/ddp-client-m…
Rohit3523 Jul 6, 2026
cce1eb6
Merge branch 'fix/ddp-10-logout-test' into fix/ddp-client-migration-i…
Rohit3523 Jul 6, 2026
69f5ef4
Merge branch 'fix/ddp-11-inquiry-leak' into fix/ddp-client-migration-…
Rohit3523 Jul 6, 2026
062d6fd
Merge branch 'fix/ddp-13-cursor-bug' into fix/ddp-client-migration-is…
Rohit3523 Jul 6, 2026
e41ee3e
Merge branch 'fix/ddp-14-restapi-invite' into fix/ddp-client-migratio…
Rohit3523 Jul 6, 2026
7fb67cd
Merge branch 'fix/ddp-18-send-attachments' into fix/ddp-client-migrat…
Rohit3523 Jul 6, 2026
9198704
Merge branch 'fix/ddp-20-media-confirm' into fix/ddp-client-migration…
Rohit3523 Jul 6, 2026
0e6bbb1
fix: remove unused disconnect import left by an incomplete amend
Rohit3523 Jul 6, 2026
71c58fb
fix: bail out of connect() if a newer call already switched servers
Rohit3523 Jul 7, 2026
c88fe76
test: actually invoke the registered 2FA challenge handler
Rohit3523 Jul 7, 2026
e47a1af
docs: fix stale JSDoc and document non-obvious auth/2FA/logout behavior
Rohit3523 Jul 7, 2026
04ac6a5
fix: use the project's log() helper instead of console.log/error in c…
Rohit3523 Jul 7, 2026
80f9872
fix: guard stream-notify-all/logged and stream-roles against fieldles…
Rohit3523 Jul 7, 2026
01d9358
Merge branch 'fix/ddp-client-migration-issues' into feat-ddp-client
Rohit3523 Jul 7, 2026
32dc416
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 7, 2026
921f920
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 7, 2026
a768f3e
lint fix
Rohit3523 Jul 7, 2026
bf20df2
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 9, 2026
72661f4
Changes
Rohit3523 Jul 9, 2026
eec64f6
remove custom id and token extend
Rohit3523 Jul 9, 2026
187b02e
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 13, 2026
478f764
changes
Rohit3523 Jul 13, 2026
83226a4
test fix
Rohit3523 Jul 13, 2026
c45be78
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 13, 2026
cd87f22
remove another unnecessary change
Rohit3523 Jul 13, 2026
f3adec5
test improve
Rohit3523 Jul 13, 2026
8cb18e7
some changes
Rohit3523 Jul 13, 2026
3104d5d
k one more patch this time
Rohit3523 Jul 13, 2026
0a03fd0
test fix
Rohit3523 Jul 13, 2026
ba9bb94
remove main pointing
Rohit3523 Jul 13, 2026
1a4527e
more changes
Rohit3523 Jul 13, 2026
3f8b9ac
prevent token from being send in header for cross origin url
Rohit3523 Jul 14, 2026
8dbff82
added server guard before sdk login
Rohit3523 Jul 14, 2026
5928660
check server before listners start
Rohit3523 Jul 14, 2026
e14854c
inquiry improvement
Rohit3523 Jul 14, 2026
a21b658
register all listners before connect
Rohit3523 Jul 14, 2026
0b7808b
more changes
Rohit3523 Jul 14, 2026
74f5ff4
handle other active user presence updates
Rohit3523 Jul 14, 2026
279e483
lint fix
Rohit3523 Jul 14, 2026
b6a6366
lint fix
Rohit3523 Jul 14, 2026
f463753
check for user login before switching server
Rohit3523 Jul 14, 2026
b9e427f
normalized response
Rohit3523 Jul 14, 2026
d77a0dd
user preference change for token
Rohit3523 Jul 14, 2026
f2b79bb
remove a comment
Rohit3523 Jul 14, 2026
a012343
new test
Rohit3523 Jul 14, 2026
d0819ed
using stop in room sub
Rohit3523 Jul 14, 2026
42cc9df
fix type
Rohit3523 Jul 14, 2026
ddc6923
remove unwanted comment
Rohit3523 Jul 14, 2026
5271af8
return false on error and no origin provided
Rohit3523 Jul 14, 2026
4e891c1
change...
Rohit3523 Jul 14, 2026
881da59
test update
Rohit3523 Jul 14, 2026
71e5945
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 14, 2026
4fb0d80
Merge remote-tracking branch 'origin/develop' into feat-ddp-client
Rohit3523 Jul 15, 2026
ed2ea3c
fix
Rohit3523 Jul 15, 2026
5ae2868
chore: format code and fix lint issues
Rohit3523 Jul 15, 2026
ec73e95
test fix
Rohit3523 Jul 17, 2026
516e6d0
some improvements
Rohit3523 Jul 19, 2026
3505eb8
minor changes
Rohit3523 Jul 19, 2026
9e8f672
some improvements
Rohit3523 Jul 20, 2026
31af37e
test fix
Rohit3523 Jul 20, 2026
a4b35d9
api-client patch update
Rohit3523 Jul 20, 2026
79610c4
Merge branch 'develop' into feat-ddp-client
Rohit3523 Jul 24, 2026
50fe9c5
improve
Rohit3523 Jul 24, 2026
dcc7534
chore: format code and fix lint issues
Rohit3523 Jul 25, 2026
15fbc62
code rabnit suggestions
Rohit3523 Jul 25, 2026
52fc781
new changes to align with new patch
Rohit3523 Aug 2, 2026
75b56eb
Merge branch 'develop' into feat-ddp-client
Rohit3523 Aug 2, 2026
e2b3387
Merge branch 'develop' into feat-ddp-client
Rohit3523 Aug 2, 2026
4586623
rename handleLogin to handleConnection
Rohit3523 Aug 2, 2026
9de06cd
remame rawSubscriptionHandles to subscriptionHandles
Rohit3523 Aug 2, 2026
d4ff6b6
using handleConnection in test...
Rohit3523 Aug 2, 2026
313bc77
remove unwanted comments
Rohit3523 Aug 2, 2026
dab8e41
remove unwanted checkAndReopen
Rohit3523 Aug 2, 2026
98197fa
added await
Rohit3523 Aug 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions __mocks__/react-native-device-info.js

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These mock values were added because, without them, the test snapshot displayed unknown values in the header's User-Agent.

Before: "RC Mobile; ios unknown; vunknown (unknown)"
After: "RC Mobile; ios 14.0; v1.0.0 (1)"

Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import mockDeviceInfo from 'react-native-device-info/jest/react-native-device-info-mock';

mockDeviceInfo.getSystemVersion = jest.fn(() => '14.0');
mockDeviceInfo.getVersion = jest.fn(() => '1.0.0');
mockDeviceInfo.getBuildNumber = jest.fn(() => '1');

export default mockDeviceInfo;
4 changes: 2 additions & 2 deletions app/containers/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { memo } from 'react';
import { View } from 'react-native';
import { Image } from 'expo-image';
import { settings as RocketChatSettings } from '@rocket.chat/sdk';

import Emoji from '../markdown/components/emoji/Emoji';
import { getAvatarURL } from '../../lib/methods/helpers/getAvatarUrl';
import { getAuthHeaders } from '../../lib/methods/helpers/getAuthHeaders';
import { SubscriptionType } from '../../definitions';
import { type IAvatar } from './interfaces';
import I18n from '../../i18n';
Expand Down Expand Up @@ -81,7 +81,7 @@ const Avatar = memo(
style={avatarStyle}
source={{
uri,
headers: RocketChatSettings.customHeaders
headers: uri ? getAuthHeaders(uri) : undefined
}}
priority='high'
/>
Expand Down
68 changes: 51 additions & 17 deletions app/containers/Avatar/__snapshots__/Avatar.test.tsx.snap

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions app/containers/Chip/__snapshots__/Chip.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ exports[`Story Snapshots: ChipText should match snapshot 1`] = `
source={
[
{
"headers": undefined,
"headers": {
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/rocket.cat?format=png&size=56",
},
]
Expand Down Expand Up @@ -391,7 +393,9 @@ exports[`Story Snapshots: ChipWithShortText should match snapshot 1`] = `
source={
[
{
"headers": undefined,
"headers": {
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/rocket.cat?format=png&size=56",
},
]
Expand Down Expand Up @@ -804,7 +808,9 @@ exports[`Story Snapshots: ChipWithoutIcon should match snapshot 1`] = `
source={
[
{
"headers": undefined,
"headers": {
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/rocket.cat?format=png&size=56",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ exports[`Story Snapshots: CustomStyle should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/@S?format=png&size=60",
},
Expand Down Expand Up @@ -433,7 +433,7 @@ exports[`Story Snapshots: Default should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/@G?format=png&size=60",
},
Expand Down Expand Up @@ -713,7 +713,7 @@ exports[`Story Snapshots: DirectMessage should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/A?format=png&size=60",
},
Expand Down Expand Up @@ -962,7 +962,7 @@ exports[`Story Snapshots: LongRoomName should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/@L?format=png&size=60",
},
Expand Down Expand Up @@ -1452,7 +1452,7 @@ exports[`Story Snapshots: TeamMain should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/@E?format=png&size=60",
},
Expand Down Expand Up @@ -1732,7 +1732,7 @@ exports[`Story Snapshots: WithRightLabel should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/@G?format=png&size=60",
},
Expand Down Expand Up @@ -2031,7 +2031,7 @@ exports[`Story Snapshots: WithoutDescription should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/@N?format=png&size=60",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const IncomingCallNotification = ({
}: {
notification: { rid: string; callId: string };
}): ReactElement | null => {
const { result } = useEndpointData('video-conference.info', { callId });
const { result } = useEndpointData('/v1/video-conference.info', { callId });

const user = useUserData(rid);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ exports[`Story Snapshots: ChannelMessage should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/room/rid-1?format=png&size=96",
},
Expand Down Expand Up @@ -504,7 +504,7 @@ exports[`Story Snapshots: DirectMessage should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/diego.mello?format=png&size=96",
},
Expand Down Expand Up @@ -850,7 +850,7 @@ exports[`Story Snapshots: WithBlackTheme should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/room/rid-1?format=png&size=96",
},
Expand Down Expand Up @@ -1196,7 +1196,7 @@ exports[`Story Snapshots: WithDarkTheme should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/room/rid-1?format=png&size=96",
},
Expand Down
3 changes: 1 addition & 2 deletions app/containers/MessageComposer/MessageComposer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,7 @@ describe('MessageComposer', () => {
type: 'image/png'
}),
undefined,
'https://open.rocket.chat',
expect.objectContaining({ id: 'abc' })
'https://open.rocket.chat'
)
);
expect(onSendMessage).not.toHaveBeenCalled();
Expand Down
3 changes: 0 additions & 3 deletions app/containers/MessageComposer/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import EmojiPicker from '../EmojiPicker';
import { MessageComposerContent } from './components/MessageComposerContent';
import { useTheme } from '../../theme';
import { useAppSelector } from '../../lib/hooks/useAppSelector';
import { getUserSelector } from '../../selectors/login';
import { sendAttachments } from '../../lib/methods/sendFileMessage/sendAttachments';
import { useAltTextSupported } from '../../lib/hooks/useAltTextSupported';

Expand Down Expand Up @@ -63,7 +62,6 @@ export const MessageComposer = ({
const recordingAudio = useRecordingAudio();
const { formatShortnameToUnicode } = useShortnameToUnicode();
const { colors } = useTheme();
const user = useAppSelector(state => getUserSelector(state));
const server = useAppSelector(state => state.server.server);
const altTextSupported = useAltTextSupported();
const attachments = useComposerAttachments();
Expand Down Expand Up @@ -134,7 +132,6 @@ export const MessageComposer = ({
rid,
tmid,
server,
user: { id: user.id, token: user.token },
altTextSupported,
getMsg: ({ description }, index) => (index === 0 ? description || quotedMessage || textFromInput : description)
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useEffect, useRef, useState, type ReactElement } from 'react';
import { Audio } from 'expo-av';
import { getInfoAsync } from 'expo-file-system/legacy';
import { useKeepAwake } from 'expo-keep-awake';
import { shallowEqual } from 'react-redux';

import { useTheme } from '../../../../theme';
import { BaseButton } from '../Buttons';
Expand Down Expand Up @@ -32,7 +31,6 @@ export const RecordAudio = (): ReactElement | null => {
const { setRecordingAudio } = useMessageComposerApi();
const { rid, tmid } = useRoomContext();
const server = useAppSelector(state => state.server.server);
const user = useAppSelector(state => ({ id: state.login.user.id, token: state.login.user.token }), shallowEqual);
const permissionToUpload = useCanUploadFile(rid);
useKeepAwake();

Expand Down Expand Up @@ -108,7 +106,7 @@ export const RecordAudio = (): ReactElement | null => {

if (fileInfo) {
if (permissionToUpload) {
await sendFileMessage(rid, fileInfo, tmid, server, user);
await sendFileMessage(rid, fileInfo, tmid, server);
}
}
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ jest.mock('../../lib/services/voip/acceptNativeCall', () => ({
jest.mock('../../lib/services/voip/playCallEndedSound', () => ({
playCallEndedSound: jest.fn()
}));
// mediaCallsStateSignals → restApi → API call. Mock to prevent network requests in tests.
jest.mock('../../lib/services/restApi', () => ({
mediaCallsStateSignals: () => Promise.resolve({ signals: [], success: true })
}));

const mockHideActionSheet = jest.fn();
jest.mock('../ActionSheet', () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/alice.johnson?format=png&size=56",
},
Expand Down Expand Up @@ -450,7 +450,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/very.long.username?format=png&size=56",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/alice.johnson?format=png&size=56",
},
Expand Down Expand Up @@ -520,7 +520,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/very.long.username?format=png&size=56",
},
Expand Down Expand Up @@ -725,7 +725,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/bob.smith?format=png&size=56",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/alice.johnson?format=png&size=56",
},
Expand Down Expand Up @@ -509,7 +509,7 @@ exports[`Story Snapshots: All should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/this.is.a.very.long.username.for.storybook.preview?format=png&size=56",
},
Expand Down Expand Up @@ -757,7 +757,7 @@ exports[`Story Snapshots: LongUsername should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/this.is.a.very.long.username.for.storybook.preview?format=png&size=56",
},
Expand Down Expand Up @@ -1191,7 +1191,7 @@ exports[`Story Snapshots: User should match snapshot 1`] = `
[
{
"headers": {
"User-Agent": "RC Mobile; ios unknown; vunknown (unknown)",
"User-Agent": "RC Mobile; ios 14.0; v1.0.0 (1)",
},
"uri": "https://open.rocket.chat/avatar/alice.johnson?format=png&size=56",
},
Expand Down
Loading
Loading