Skip to content

Commit 4e6a446

Browse files
committed
超级群组,消息 notLoaded 时,返回值为默认值的对应消息对象。使用时,需要先判断消息是否 loaded'
1 parent bc882bb commit 4e6a446

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/main/java/cn/wildfirechat/client/ClientService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4222,6 +4222,9 @@ public MessageContent messageContentFromPayload(MessagePayload payload, String f
42224222
}
42234223

42244224
MessageContent content = contentOfType(payload.type);
4225+
if(payload.notLoaded > 0){
4226+
return content;
4227+
}
42254228
try {
42264229
if (content instanceof CompositeMessageContent) {
42274230
((CompositeMessageContent) content).decode(payload, this);

0 commit comments

Comments
 (0)