mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-22 06:08:54 -04:00
more cleanup
This commit is contained in:
parent
c42736ce24
commit
adaa2951c2
2 changed files with 16 additions and 4 deletions
|
@ -232,7 +232,12 @@ class ContactInvitationListCubit
|
|||
// inbox with our list of extant invitations
|
||||
// If we're chatting to ourselves,
|
||||
// we are validating an invitation we have created
|
||||
final isSelf = state.state.asData!.value.indexWhere((cir) =>
|
||||
final contactInvitationList = state.state.asData?.value;
|
||||
if (contactInvitationList == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final isSelf = contactInvitationList.indexWhere((cir) =>
|
||||
cir.value.contactRequestInbox.recordKey.toVeilid() ==
|
||||
contactRequestInboxKey) !=
|
||||
-1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue