Skip to content

[mob][photos] fix: memory share init sync#10009

Merged
ua741 merged 1 commit intomainfrom
codex/restore-memory-share-init-sync
Apr 11, 2026
Merged

[mob][photos] fix: memory share init sync#10009
ua741 merged 1 commit intomainfrom
codex/restore-memory-share-init-sync

Conversation

@AmanRajSinghMourya
Copy link
Copy Markdown
Contributor

@AmanRajSinghMourya AmanRajSinghMourya commented Apr 10, 2026

Summary

Add a login guard before the init-time memory share refresh

Problem

MemoryShareService.init() always attempted to refresh memory shares during
startup.

That could trigger unnecessary /memory-share requests even when the app
was not in a logged-in state, and it also made the init path less defensive
around auth availability.

Fix

Before calling listMemoryShares() in MemoryShareService.init(), check:
Configuration.instance.isLoggedIn()

@AmanRajSinghMourya AmanRajSinghMourya changed the title [codex] restore memory share init sync [mob][photos] fix: memory share init sync Apr 10, 2026
@AmanRajSinghMourya AmanRajSinghMourya marked this pull request as ready for review April 10, 2026 12:53
@ua741 ua741 merged commit 825a700 into main Apr 11, 2026
4 checks passed
@ua741 ua741 deleted the codex/restore-memory-share-init-sync branch April 11, 2026 02:05
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.

2 participants