Skip to content
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

chore: remove calls to getLatestVerificationRequestFrom #16149

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

jrainville
Copy link
Member

Fixes #16147

Since ID verification is disabled for now, we can remove the calls to getLatestVerificationRequestFrom.

If we want to have ID verification back, we can re-add those calls, but in my opinion, it should be done better from status-go directly, or only asking for the ID verif when looking at the contact's profile

I tested with a timer and it doesn't save much on app start, but it's something. Also, it's a function that accesses the database, so it's better to not do it, and especially not that many times.

@status-im-auto
Copy link
Member

status-im-auto commented Aug 19, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a9b48a9 #1 2024-08-19 17:57:50 ~6 min tests/nim 📄log
a9b48a9 #1 2024-08-19 17:58:50 ~7 min macos/x86_64 📄log
a9b48a9 #1 2024-08-19 17:59:19 ~8 min macos/aarch64 📄log
a9b48a9 #1 2024-08-19 18:01:17 ~10 min linux-nix/x86_64 📄log
a9b48a9 #1 2024-08-19 18:01:24 ~10 min linux/x86_64 📄log
✔️ a9b48a9 #1 2024-08-19 18:05:08 ~14 min tests/ui 📄log
a9b48a9 #1 2024-08-19 18:09:55 ~18 min windows/x86_64 📄log
✔️ 9aab145 #2 2024-08-19 18:21:08 ~6 min tests/nim 📄log
✔️ 9aab145 #2 2024-08-19 18:21:51 ~7 min macos/aarch64 🍎dmg
✔️ 9aab145 #2 2024-08-19 18:22:01 ~7 min macos/x86_64 🍎dmg
✔️ 9aab145 #2 2024-08-19 18:27:22 ~12 min linux-nix/x86_64 📦tgz
✔️ 9aab145 #2 2024-08-19 18:27:54 ~13 min tests/ui 📄log
✔️ 9aab145 #2 2024-08-19 18:29:58 ~15 min linux/x86_64 📦tgz
✔️ 9aab145 #2 2024-08-19 18:37:37 ~23 min windows/x86_64 💿exe

Copy link
Contributor

@alexjba alexjba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -1182,7 +1179,7 @@ method communityDataImported*[T](self: Module[T], community: CommunityDto) =

method resolveENS*[T](self: Module[T], ensName: string, uuid: string, reason: string = "") =
if ensName.len == 0:
echo "error: cannot do a lookup for empty ens name"
err "error: cannot do a lookup for empty ens name"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
err "error: cannot do a lookup for empty ens name"
error "error: cannot do a lookup for empty ens name"

Fixes #16147

Since ID verification is disabled for now, we can remove the calls to getLatestVerificationRequestFrom.

If we want to have ID verification back, we can re-add those calls, but in my opinion, it should be done better from status-go directly, or only asking for the ID verif when looking at the contact's profile
@jrainville jrainville force-pushed the fix/getLatestVerificationRequestFrom-clals branch from a9b48a9 to 9aab145 Compare August 19, 2024 18:14
@jrainville jrainville merged commit 3bef204 into master Aug 19, 2024
9 checks passed
@jrainville jrainville deleted the fix/getLatestVerificationRequestFrom-clals branch August 19, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wakuext_getLatestVerificationRequestFrom is called way too often and we don't even show ID verif currently
4 participants