From 943945b4bdadb76621f73a74cd665e577899ee38 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 16 Aug 2017 10:25:11 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9Cprofiles=20not=20encoded?= =?UTF-8?q?=E2=80=9D=20bug.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit // FREEBIE --- Signal/src/Profiles/OWSProfileManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Signal/src/Profiles/OWSProfileManager.m b/Signal/src/Profiles/OWSProfileManager.m index e03cdba82..c7156a265 100644 --- a/Signal/src/Profiles/OWSProfileManager.m +++ b/Signal/src/Profiles/OWSProfileManager.m @@ -429,7 +429,7 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640; kOWSProfileManager_MaxAvatarDiameter)]; } - NSData *_Nullable data; + NSData *_Nullable data = UIImageJPEGRepresentation(image, 0.95f); if (data.length > kMaxAvatarBytes) { // Our avatar dimensions are so small that it's incredibly unlikely we wouldn't be able to fit our profile // photo. e.g. generating pure noise at our resolution compresses to ~200k.