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#
|
||||
final profiles = result.results;
|
||||
|
||||
if (searchTerm.isValidMatrixId &&
|
||||
searchTerm.sigil == '@' &&
|
||||
!profiles.any((profile) => profile.userId == searchTerm)) {
|
||||
profiles.add(Profile(userId: searchTerm));
|
||||
}
|
||||
// #Pangea
|
||||
// if (searchTerm.isValidMatrixId &&
|
||||
// searchTerm.sigil == '@' &&
|
||||
// !profiles.any((profile) => profile.userId == searchTerm)) {
|
||||
// profiles.add(Profile(userId: searchTerm));
|
||||
// }
|
||||
// Pangea#
|
||||
|
||||
return profiles;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue