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
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
Unknown Object (File)
Fri, Aug 30, 6:08 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable