Apply country code also to chat peer's URI in order to find proper contact

This commit is contained in:
Juha Heinanen
2023-03-01 01:13:24 +02:00
parent bc025a496e
commit 95ed61a46b
6 changed files with 20 additions and 16 deletions
@@ -91,7 +91,7 @@ sealed class Contact {
}
is AndroidContact -> {
for (u in c.uris)
if (Utils.uriMatch(u, uri))
if (Utils.uriMatch(u.filterNot{setOf('-', ' ', '(', ')').contains(it)}, uri))
return c
}
}