37 Commits

Author SHA1 Message Date
25764c7ab4 fix: processing events
Partially revert to before 23a04faad89ae3138008f4b1b9a112bf944f279b
2024-10-12 11:52:43 +02:00
3a507246ca refactor: add comments
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 32s
2024-10-08 20:25:34 +02:00
f09d9b2378 refactor(ts): remove type assertion
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 33s
2024-10-08 20:14:44 +02:00
110621a125 feat: add nostrLoginAuthMethod to state 2024-10-07 13:36:45 +02:00
2e1d48168a refactor: rename userId to npub
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s
2024-09-20 11:13:48 +02:00
70cca9dd10 refactor: add getProfileUsername utility func 2024-09-19 14:46:22 +02:00
dd53ded518 fix: updates blossom authorisation event
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s
2024-09-18 17:57:36 +03:00
1dfab7b82b refactor: metadatacontroller as singleton 2024-09-16 11:06:55 +02:00
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
daniyal
49c1714962 fix: use old approach of using sha256 for generating d tag
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 44s
2024-08-22 16:11:20 +05:00
daniyal
18270c5d8a feat: use nip04 for encryption and decryption of userData to store on blossom server
Some checks failed
Open PR on Staging / audit_and_check (pull_request) Failing after 17s
2024-08-22 13:08:30 +05:00
daniyal
d7b5ea9b9e fix: use default relayMap if its undefined in redux store
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 33s
2024-08-21 12:53:19 +05:00
daniyal
66c7182fa4 chore(refactor): move dvm related function to dvm utils file and relay related to relays utils file
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 33s
2024-08-18 22:48:48 +05: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
6652c6519e refactor(review): add date util functions
Some checks failed
Open PR on Staging / audit_and_check (pull_request) Failing after 9s
2024-08-13 11:52:05 +02:00
83ddc1bbc8 feat: add dropzone and multiple files support
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 33s
2024-08-08 17:30:49 +02:00
f51afe3b67 fix: some linter warnings and an error 2024-08-05 09:49:56 +02:00
SH
7df6ab8c84 fix: return immediately from publish event when published to at least one relay and keep publishing to other in background 2024-07-09 17:17:57 +05:00
SwiftHawk
0aaa20092e chore: add comments 2024-07-09 01:16:47 +05:00
SwiftHawk
6b135ac54d fix: add timeout in publishing updated app data and sending notifications 2024-07-08 16:50:38 +05:00
SwiftHawk
412da32293 chore remove unused code 2024-07-05 14:17:12 +05:00
SwiftHawk
d4c50dabaf chore: update flow for storing sigits 2024-07-05 13:38:04 +05:00
SwiftHawk
88bdce33c9 chore: quick fix 2024-06-28 14:25:41 +05:00
SwiftHawk
5850ef7dce chore: push unfinished changes 2024-06-28 14:24:14 +05:00
SwiftHawk
3efa557976 feat: allow the user to login via nsecbunker using only domain part 2024-05-27 14:32:24 +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
ee2f0cbc97 feat: convert hexkeys to npub in meta.json 2024-05-17 13:34:56 +05:00
Davinci
6604ea2046 fix: looping trough robo sets, image not shown when visiting profile while not logged in 2024-05-17 09:37:30 +02:00
Davinci
9aa10664a7 fix: getRobohash function will do the conversion of pubkey 2024-05-16 08:55:24 +02:00
Davinci
4f4f7fb5c1 fix: remove nostr image for placeholder avatar, use robohash instead 2024-05-15 13:57:54 +02: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
2ed092bcbd feat: maintain logged in sesssion
All checks were successful
Release / build_and_release (push) Successful in 43s
2024-03-19 15:27:18 +05:00
Sabir Hassan
7c3c061b88 fix: update the logic for login with nsecbunker
All checks were successful
Release / build_and_release (push) Successful in 49s
2024-03-05 15:08:33 +05:00
Sabir Hassan
c0547b2a1f feat: implemented profile page 2024-03-01 15:16:35 +05:00
Sabir Hassan
aa991be416 chore: implemented basic layout and login page 2024-02-28 21:49:44 +05:00