mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Room Participants: Validate correctly matrix user identifier during search session
This commit is contained in:
@@ -893,7 +893,7 @@
|
||||
NSString *searchText = mxkContact.displayName;
|
||||
|
||||
// Check whether this input is a valid email or a Matrix user ID before adding the plus icon.
|
||||
if (![MXTools isEmailAddress:searchText] && ([searchText characterAtIndex:0] != '@' || [searchText containsString:@":"] == NO))
|
||||
if (![MXTools isEmailAddress:searchText] && ![MXTools isMatrixUserIdentifier:searchText])
|
||||
{
|
||||
participantCell.contentView.alpha = 0.5;
|
||||
participantCell.userInteractionEnabled = NO;
|
||||
|
||||
Reference in New Issue
Block a user