fix for loading after joining chat in space view
This commit is contained in:
parent
b070f71344
commit
a82f0e5c7a
1 changed files with 12 additions and 1 deletions
|
|
@ -234,6 +234,7 @@ class _SpaceViewState extends State<SpaceView> {
|
|||
_refresh();
|
||||
}
|
||||
|
||||
// @override
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
|
|
@ -330,7 +331,17 @@ class _SpaceViewState extends State<SpaceView> {
|
|||
|
||||
// #Pangea
|
||||
void refreshOnUpdate(SyncUpdate event) {
|
||||
if (event.isMembershipUpdate(Matrix.of(context).client.userID!) ||
|
||||
/* refresh on leave, invite, and space child update
|
||||
not join events, because there's already a listener on
|
||||
onTapSpaceChild, and they interfere with each other */
|
||||
if (event.isMembershipUpdateByType(
|
||||
Membership.leave,
|
||||
Matrix.of(context).client.userID!,
|
||||
) ||
|
||||
event.isMembershipUpdateByType(
|
||||
Membership.invite,
|
||||
Matrix.of(context).client.userID!,
|
||||
) ||
|
||||
event.isSpaceChildUpdate(activeSpaceId)) {
|
||||
_refresh();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue