fixed a test and some code improvements

This commit is contained in:
Mauro Romito
2023-01-12 10:41:52 +01:00
parent c4cc35d976
commit 6662be9d66
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1043,7 +1043,7 @@ manualChangeMessageForVideo:(NSString*)manualChangeMessageForVideo
// This allows to check for normal url based links (like https://element.io)
// And set back the default link color
NSArray *matches = [linkDetector matchesInString: [mutableAttributedString string] options:0 range: NSMakeRange(0,mutableAttributedString.length)];
if (matches && matches.count > 0)
if (matches)
{
for (NSTextCheckingResult *match in matches)
{