Skip to content

Commit

Permalink
remove artifical delay and await for broadcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-lox committed Dec 12, 2024
1 parent 066c7d5 commit fe26288
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ ${_privateKey.mnemonicSentence}
/// broadcast nip65
await inboxOutboxP.setNip65data(myNip65);

await Future.delayed(Duration(seconds: 1));

final UserMetadata userMetadata = UserMetadata(
eventId: '',
lastFetch: 0,
Expand All @@ -131,8 +129,8 @@ ${_privateKey.mnemonicSentence}
lud16: widget.userInfo.lud16,
);

metadataP.broadcastMetadata(userMetadata);
followP.setContacts(widget.userInfo.followPubkeys);
await metadataP.broadcastMetadata(userMetadata);
await followP.setContacts(widget.userInfo.followPubkeys);
}

@override
Expand Down Expand Up @@ -182,8 +180,6 @@ ${_privateKey.mnemonicSentence}

await _broadcastAcc();

await Future.delayed(const Duration(seconds: 2));

if (!mounted) return;

// naviage to /
Expand Down

0 comments on commit fe26288

Please sign in to comment.