more cleanup

This commit is contained in:
Christien Rioux 2024-06-20 23:00:10 -04:00
parent c42736ce24
commit adaa2951c2
2 changed files with 16 additions and 4 deletions

View file

@ -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;