Page MenuHomePhorge

Fix loading room page when no such member event is in local state
ClosedPublic

Authored by tusooa on Jul 1 2024, 4:45 PM.
Tags
None
Referenced Files
F27073: D86.1726601505.diff
Mon, Sep 16, 12:31 PM
Unknown Object (File)
Wed, Sep 4, 7:04 PM
Unknown Object (File)
Tue, Sep 3, 8:10 PM
Unknown Object (File)
Tue, Sep 3, 8:10 PM
Unknown Object (File)
Tue, Sep 3, 2:03 PM
Unknown Object (File)
Mon, Sep 2, 10:33 PM
Unknown Object (File)
Mon, Sep 2, 3:38 PM
Unknown Object (File)
Sat, Aug 31, 1:26 PM
Subscribers
None

Details

Summary

When the local state contains no member event for some member, it would return an empty event as the member event for UserPage. Thus the auto-load mechanism for UserPage would not work. This fixes the problem by passing the userId directly.

Type: fix

Test Plan

Go to a room where the member event is missing for some timeline event. Click on the avatar of the member. Verify that the member's actual name and avatar is loaded in UserPage.

Diff Detail

Repository
rK kazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 125
Build 239: GitLab CI for kazv
Build 238: arc lint + arc unit