-
Notifications
You must be signed in to change notification settings - Fork 984
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
Pending stickers status maintains after app restart #9965
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (9)
|
Tested on ios that stickers can be purchased and pending status remains between app restarts. |
@@ -31,6 +31,9 @@ | |||
{} | |||
stickers-packs)) | |||
|
|||
(defn rpc->pending-packs [pending-packs] |
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.
Can we just use set
instead?
src/status_im/stickers/core.cljs
Outdated
(fx/merge cofx | ||
{:db (assoc db | ||
:stickers/packs-installed sticker-packs | ||
:stickers/packs sticker-packs | ||
:stickers/packs-pending pending-packs)} | ||
#(when (not-empty pending-packs) | ||
{:stickers/set-pending-timeout-fx nil})))) |
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.
It could be just
(cond-> {:db (assoc db
:stickers/packs-installed sticker-packs
:stickers/packs sticker-packs
:stickers/packs-pending pending-packs)}
(not-empty pending-packs)
(assoc :stickers/set-pending-timeout-fx nil))
i think it will be better to implement saving pending transactions, in that case we could just check that we have pending transaction for stickers |
@rasom, thanks for your notes, addressed. |
@flexsurfer, yesterday we discussed that it is possible to commit this PR and create a separate issue to support pending transactions. If you still don't mind to make it this way, could you please comment/review? Thanks. |
0bdd791
to
d166ea7
Compare
25% of end-end tests have passed
Failed tests (73)Click to expand
Passed tests (24)Click to expand |
d166ea7
to
a0275f3
Compare
a0275f3
to
add9ce2
Compare
@Serhy, thank you for testing! |
Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
add9ce2
to
e6c859d
Compare
fixes #9754
Summary
If stickers purchase wasn't confirmed yet, user will see waiting spinner even after restart
NOTE:
status-go
PR should be merged first andstatus-go-version.json
updated before merge of this one.Review notes
When user purchases a stickerpack, new
pending-stickers
record added to multiaccount to survive restart (Related changes in status-go: status-im/status-go#1830).After app start we run
set-pending-timeout-fx
again to make sure that pending stickers will be processedPlatforms
Areas that maybe impacted
Stickers purchasing
Steps to test
status: ready