summaryrefslogtreecommitdiff
path: root/Juick/Model/Message.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-06-24 22:49:00 +0300
committerGravatar Vitaly Takmazov2020-12-10 18:59:38 +0300
commitd7a93cca8289ad997af9ad2c1540877d5bd50879 (patch)
tree1bb732f35e2d0c8801debf9df374ade0ea24cdbc /Juick/Model/Message.m
parentaad20a5cb0a7996d1e83f64fdd973fb7ca290529 (diff)
Diffstat (limited to 'Juick/Model/Message.m')
-rw-r--r--Juick/Model/Message.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/Model/Message.m b/Juick/Model/Message.m
index d39be54..afc01af 100644
--- a/Juick/Model/Message.m
+++ b/Juick/Model/Message.m
@@ -20,8 +20,8 @@
message.repliesBy = jsonData[@"repliesby"];
message.user = [User fromJSON:jsonData[@"user"]];
message.timestamp = jsonData[@"timestamp"];
- message.service = jsonData[@"service"];
- message.unread = jsonData[@"unread"];
+ message.service = [jsonData[@"service"] boolValue];
+ message.unread = [jsonData[@"unread"] boolValue];
message.tags = jsonData[@"tags"];
NSMutableArray *entitiesArray = [NSMutableArray new];
for (NSDictionary *entityData in jsonData[@"entities"]) {