-
Notifications
You must be signed in to change notification settings - Fork 987
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
request messages history after background #3493
request messages history after background #3493
Conversation
46a3049
to
40466d8
Compare
b887034
to
2b4615d
Compare
testcase №1
|
src/status_im/utils/datetime.cljs
Outdated
@@ -111,6 +111,12 @@ | |||
(defn now-ms [] | |||
(to-long (now))) | |||
|
|||
(defn now-s! [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what the purpose of !
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
side effect in this case, though we don't have a convention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since now-ms doesn't have a bang I wouldn't put one here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@rasom WDYT about resolving conflicts and getting this (tested&)merged, even if it isn't 100% covering all cases yet? |
src/status_im/protocol/handlers.cljs
Outdated
:web3 web3}}))) | ||
(when web3 | ||
(let [wnode-id (get db :inbox/wnode) | ||
wnode (get-in db [:inbox/wnodes wnode-id :address])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a fn get-wnode or something, Eric used this in other PR
a542f6a
to
d934a44
Compare
conflicts resolved, let's test it |
53% of end-end tests have passed
Failed tests (7)Click to expand
Passed tests (8)Click to expand
|
src/status_im/ui/screens/events.cljs
Outdated
@@ -71,6 +72,11 @@ | |||
(fn [coeffects _] | |||
(assoc coeffects :now (time/now-ms)))) | |||
|
|||
(re-frame/reg-cofx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we already have now
and it is a coeffect added to all event, I think it is better to just have an to-s
function that turns now
into now-s rather than a second coeffect that also produces a timestamp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah thought also about this
I tested it on Android 7 (Samsung Galaxy S8) and iOS 11.2.1 (iPhone 6). Here is what I found.
|
56% of end-end tests have passed
Failed tests (7)Click to expand
Passed tests (9)Click to expand
|
d934a44
to
46fe7e6
Compare
request history when network connection is reestablished
46fe7e6
to
239a21e
Compare
fixes #3467
status: ready