chore: don't add artificial profile to DM search results (#5535)

This commit is contained in:
ggurdin 2026-01-30 10:42:55 -05:00 committed by GitHub
parent 23d8048268
commit 212077fe2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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