about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-07 11:10:03 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-04-07 11:10:03 -0500
commite27cd0098ff6543eec05f80ca54a3a5f65a25d47 (patch)
tree035a5e28b87a02e0d3dde271303edbaec2d435bd /src
parentab11f206d8a14443d68408f237fd99dd33752185 (diff)
downloadvoidsky-e27cd0098ff6543eec05f80ca54a3a5f65a25d47.tar.zst
Fix: correctly track when profile state was last updated
Diffstat (limited to 'src')
-rw-r--r--src/state/models/me.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts
index 1dcccb6f1..a0591aeca 100644
--- a/src/state/models/me.ts
+++ b/src/state/models/me.ts
@@ -115,6 +115,7 @@ export class MeModel {
   async updateIfNeeded() {
     if (Date.now() - this.lastProfileStateUpdate > PROFILE_UPDATE_INTERVAL) {
       this.rootStore.log.debug('Updating me profile information')
+      this.lastProfileStateUpdate = Date.now()
       await this.fetchProfile()
       await this.fetchInviteCodes()
     }