Skip to content

Commit 7d84858

Browse files
author
zhanq
committed
ios-getHistoryMessage新增未读消息数
1 parent 4962046 commit 7d84858

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)