From cf97b1cd43a91725e0419a953815287fde0bf70f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 17 Sep 2020 00:46:27 +0300 Subject: SwiftUI WIP --- Juick/Model/Message.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Juick/Model/Message.m') diff --git a/Juick/Model/Message.m b/Juick/Model/Message.m index d39be54..afc499e 100644 --- a/Juick/Model/Message.m +++ b/Juick/Model/Message.m @@ -13,7 +13,7 @@ + (Message *) fromJSON:(NSDictionary *)jsonData { Message * message = [Message new]; message.mid = jsonData[@"mid"]; - message.rid = jsonData[@"rid"]; + message.rid = [NSNumber numberWithInt:jsonData[@"rid"]]; message.text = jsonData[@"body"]; message.attach = jsonData[@"photo"][@"small"]; message.repliesCount = jsonData[@"replies"]; -- cgit v1.2.3