Skip to content

Commit 6f9c545

Browse files
author
wicked-tc130
authored
Merge pull request #167 from wicked-tc130/master
ios-getHistoryMessage新增未读消息数
2 parents 1a6c059 + 75e9e80 commit 6f9c545

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ios/RCTJMessageModule/JMessageHelper.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ - (NSMutableDictionary *)messageToDictionary {
594594

595595
dict[@"createTime"] = self.timestamp;
596596

597+
NSNumber *unreadCount = @(self.getMessageUnreadCount);
598+
dict[@"unreceiptCount"] = unreadCount;
597599
switch (self.contentType) {
598600
case kJMSGContentTypeUnknown: {
599601
dict[@"type"] = @"unknown";

0 commit comments

Comments
 (0)