Commit Graph

20 Commits

Author SHA1 Message Date
235e76be4e fix: processing gift wraps and notifications (#193)
All checks were successful
Release to Staging / build_and_release (push) Successful in 1m16s
This change will potentially close multiple issues related to the gift-wrapped events processing (#168, #158). Further testing will be required to confirm before closing each.

The commented-out code causes the race condition during the processing of the gift wraps with sigits.

During the processing we perform checks to see if sigit is outdated. In cases where sigit includes multiple signers it's possible for a signer to receive multiple sigit updates at once (especially noticeable for 3rd, 4th signer). Due to async nature of processing we can have same sigit enter processing flow with different states. Since this code also updates user's app state, which includes uploads to the blossom server it takes time to upload local user state which causes both to check against the stale data and un-updated app state. This results in both sigits being "new" and both proceed to update user state and upload app data. We have no guarantees as in which event will update last, meaning that the final state we end up with could be already stale.

The issue is also complicated due to the fact that we mark the gift wraps as processed and it's impossible to update the state without creating a new gift wrap with correct state and processing it last to overwrite stale state.

This is temporary solution to stop broken sigit states until proper async implementation is ready.

Co-authored-by: b
Reviewed-on: #193
Reviewed-by: eugene <eugene@nostrdev.com>
Co-authored-by: enes <mulahasanovic@outlook.com>
Co-committed-by: enes <mulahasanovic@outlook.com>
2024-09-12 08:26:59 +00:00
a48751b9a8 refactor(footer): make footer a portal and use as needed 2024-08-29 16:43:09 +02:00
c3a39157ff fix(verify-page): remove mark border in production, enable dev flag for css classes
All checks were successful
Release to Staging / build_and_release (push) Successful in 1m14s
Hotfix
2024-08-20 15:47:51 +02:00
daniyal
a775d7b265 feat: implemented relay controller and use that for fetching and publishing events
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 33s
2024-08-15 22:13:39 +05:00
5015cefe98 refactor: update loading description 2024-08-08 12:43:49 +02:00
dc11f5695d refactor: update main layout loading desc 2024-07-30 16:25:36 +02:00
9189ff33bc fix: reduce mui usage, implement design updates 2024-07-29 11:22:04 +02:00
0a61ae5f64 feat: landing page implementation and styling 2024-07-25 15:05:47 +02:00
SwiftHawk
fa7a6e85f4 fix: fetch app data from after login 2024-07-08 14:27:09 +05:00
SwiftHawk
d4c50dabaf chore: update flow for storing sigits 2024-07-05 13:38:04 +05:00
SwiftHawk
5850ef7dce chore: push unfinished changes 2024-06-28 14:24:14 +05:00
SwiftHawk
2b9617232e feat: update findMetadata method of metadata controller 2024-05-30 22:28:40 +05:00
Davinci
194c564ddc style: lint fix 2024-05-17 13:35:37 +02:00
Davinci
8c5835c07f chore(git): Merge branch 'main' into pictures-fixes 2024-05-17 13:34:51 +02:00
Davinci
5f8e8fd6f4 fix: profile picture inconsistencies, login with enter 2024-05-17 13:33:01 +02:00
SwiftHawk
4f11b1c4a8 chore: add comments 2024-05-17 13:59:03 +05:00
Davinci
e3e15b7af1 fix: nsec login, metadata overlapping, robohash image in metadata state 2024-05-16 16:45:00 +02:00
Yury
819902eafb chore: fixed code formatting 2024-05-15 11:50:21 +03:00
SwiftHawk
bd1e8417c1 feat: create signing request and send a DM to first signer with zip file url and encryption key
All checks were successful
Release / build_and_release (push) Successful in 1m2s
2024-04-08 17:45:51 +05:00
Sabir Hassan
aa991be416 chore: implemented basic layout and login page 2024-02-28 21:49:44 +05:00