From 4577ff582c51a4a21f0ea2a8042c504d3ae9e5da Mon Sep 17 00:00:00 2001 From: Giom Foret Date: Mon, 26 Aug 2019 10:55:09 +0200 Subject: [PATCH] MXKEmail: force in lowercase the email address - decode in lowercase the cached email addresses --- MatrixKit/Models/Contact/MXKEmail.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatrixKit/Models/Contact/MXKEmail.m b/MatrixKit/Models/Contact/MXKEmail.m index 8531c5caf..5ccda81c3 100644 --- a/MatrixKit/Models/Contact/MXKEmail.m +++ b/MatrixKit/Models/Contact/MXKEmail.m @@ -74,7 +74,7 @@ - (id)initWithCoder:(NSCoder *)coder if (self) { _type = [coder decodeObjectForKey:@"type"]; - _emailAddress = [coder decodeObjectForKey:@"emailAddress"]; + _emailAddress = [[coder decodeObjectForKey:@"emailAddress"] lowercaseString]; } return self;