From 8d003a7c35c7b1794b13f76c838bf923f4b1fe8c Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 18 Mar 2015 15:00:46 -0400 Subject: [PATCH] Return used space of quota as a number in JSON --- SoObjects/Mailer/SOGoMailAccount.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index 516a5f2bb..6216ee2c7 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -300,7 +300,7 @@ static NSString *inboxFolderName = @"INBOX"; quota = quota * [(NSNumber*)[inboxQuota objectForKey: @"maxQuota"] intValue]; inboxQuota = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithLong: (long)(quota+0.5)], @"maxQuota", - [inboxQuota objectForKey: @"usedSpace"], @"usedSpace", + [NSNumber numberWithLong: [[inboxQuota objectForKey: @"usedSpace"] longLongValue]], @"usedSpace", nil]; } }