Cleanup new account empty logic

This commit is contained in:
bemusementpark
2024-07-16 01:32:52 +09:30
parent e001ccb283
commit 85ee87f619
8 changed files with 17 additions and 26 deletions

View File

@@ -91,14 +91,14 @@ class MentionViewModelTest {
contactDatabase = mock {
on { getContacts(any()) } doAnswer {
val ids = it.arguments[0] as Collection<String>
memberContacts.filter { contact -> contact.accountID in ids }
memberContacts.filter { it.accountID in ids }
}
},
memberDatabase = mock {
on { getGroupMembersRoles(eq(openGroup.id), any()) } doAnswer {
val memberIDs = it.arguments[1] as Collection<String>
memberIDs.associateWith { id ->
threadMembers.first { m -> m.pubKey == id }.roles
threadMembers.first { it.pubKey == id }.roles
}
}
},