-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[FIX] Differ to Last Session Authenticated #3667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
9a283fe
88cab2c
0b71ab8
3db4e29
acd8a2d
dac4194
6d4c8ac
080e7bc
bfd3589
6c54776
cc4a573
c1d190c
e25d5fd
1e01a65
330f8f5
133fca8
787060f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,6 +175,17 @@ const RocketChat = { | |
| message: I18n.t('Not_RC_Server', { contact: I18n.t('Contact_your_server_admin') }) | ||
| }; | ||
| }, | ||
| async getServerTimeSync(server) { | ||
| try { | ||
| const response = await RNFetchBlob.fetch('GET', `${server}/_timesync`); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just realized we should do a race here. I think a race of 2 seconds should be ok. |
||
| if (response?.data) { | ||
| return parseInt(response.data); | ||
| } | ||
| return null; | ||
| } catch { | ||
| return null; | ||
| } | ||
| }, | ||
| stopListener(listener) { | ||
| return listener && listener.stop(); | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.