chore: don't add artificial profile to DM search results (#5535)
This commit is contained in:
parent
23d8048268
commit
212077fe2c
1 changed files with 7 additions and 5 deletions
|
|
@ -60,11 +60,13 @@ class NewPrivateChatController extends State<NewPrivateChat> {
|
||||||
// Pangea#
|
// Pangea#
|
||||||
final profiles = result.results;
|
final profiles = result.results;
|
||||||
|
|
||||||
if (searchTerm.isValidMatrixId &&
|
// #Pangea
|
||||||
searchTerm.sigil == '@' &&
|
// if (searchTerm.isValidMatrixId &&
|
||||||
!profiles.any((profile) => profile.userId == searchTerm)) {
|
// searchTerm.sigil == '@' &&
|
||||||
profiles.add(Profile(userId: searchTerm));
|
// !profiles.any((profile) => profile.userId == searchTerm)) {
|
||||||
}
|
// profiles.add(Profile(userId: searchTerm));
|
||||||
|
// }
|
||||||
|
// Pangea#
|
||||||
|
|
||||||
return profiles;
|
return profiles;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue