mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-16 17:09:31 +01:00
fix: Invite left members
This commit is contained in:
parent
e5b23fa227
commit
fe649e5a62
@ -98,11 +98,13 @@ class _InvitationSelectionState extends State<InvitationSelection> {
|
|||||||
Profile.fromJson({'user_id': '@$text'}),
|
Profile.fromJson({'user_id': '@$text'}),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
final participants = widget.room
|
||||||
|
.getParticipants()
|
||||||
|
.where((user) =>
|
||||||
|
[Membership.join, Membership.invite].contains(user.membership))
|
||||||
|
.toList();
|
||||||
foundProfiles.removeWhere((profile) =>
|
foundProfiles.removeWhere((profile) =>
|
||||||
widget.room
|
participants.indexWhere((u) => u.id == profile.userId) != -1);
|
||||||
.getParticipants()
|
|
||||||
.indexWhere((u) => u.id == profile.userId) !=
|
|
||||||
-1);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -550,12 +550,6 @@ class _SettingsState extends State<Settings> {
|
|||||||
ListTile(
|
ListTile(
|
||||||
trailing: Icon(Icons.link),
|
trailing: Icon(Icons.link),
|
||||||
title: Text(L10n.of(context).license),
|
title: Text(L10n.of(context).license),
|
||||||
onTap: () => launch(
|
|
||||||
'https://gitlab.com/ChristianPauly/fluffychat-flutter/raw/master/LICENSE'),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
trailing: Icon(Icons.code),
|
|
||||||
title: Text(L10n.of(context).sourceCode),
|
|
||||||
onTap: () => showLicensePage(
|
onTap: () => showLicensePage(
|
||||||
context: context,
|
context: context,
|
||||||
applicationIcon:
|
applicationIcon:
|
||||||
@ -563,6 +557,12 @@ class _SettingsState extends State<Settings> {
|
|||||||
applicationName: AppConfig.applicationName,
|
applicationName: AppConfig.applicationName,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
ListTile(
|
||||||
|
trailing: Icon(Icons.code),
|
||||||
|
title: Text(L10n.of(context).sourceCode),
|
||||||
|
onTap: () => launch(
|
||||||
|
'https://gitlab.com/ChristianPauly/fluffychat-flutter'),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user