summaryrefslogtreecommitdiff
path: root/Juick/Model/Message.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-09-17 00:46:27 +0300
committerGravatar Vitaly Takmazov2020-12-10 18:59:55 +0300
commitcf97b1cd43a91725e0419a953815287fde0bf70f (patch)
tree82961197cf7fa1bfa40550748ddd309e5e4d38c3 /Juick/Model/Message.m
parent4851a21c41488a6f0c01e60f1bd1472846f816bf (diff)
SwiftUI WIP
Diffstat (limited to 'Juick/Model/Message.m')
-rw-r--r--Juick/Model/Message.m2
1 files changed, 1 insertions, 1 deletions
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"];