TencentCloud/TIMSDK

onconversationchanged 在单聊时更新未读消息不及时

zhouyijian opened this issue · 1 comments

【iOS】-【4.4.479】:【集成时报找不到GroupChatPanel类错误】
【集成包】:

      cellData.dependency 'TXIMSDK_Plus_iOS','7.4.4643'
      cellData.dependency 'TUICore','7.3.4358'
      cellData.dependency 'TIMCommon','7.3.4358'
      cellData.dependency 'ReactiveObjC'
      cellData.dependency 'Masonry'

【当前现象】:iOS 集成7.3.4358 TUIKit + 7.4.4643 TXIMSDK_Plus_iOS,未读消息更新不及时,进去单聊页面,过两三秒才会回调 onconversationchanged 将该消息标记为已读,如果刚进去马上退出,单聊消息将还是未读状态。
【机型】:iPhone 14 Pro MAX, iOS 16.4.1
【之前版本有无此问题】:有

TIM: 2023-09-11 11:23:04.214 W 16359-4832510   |-im_engine_impl.cpp:3089                 GetAIDenoiseSignature                   |not support ai denoise
TIM: 2023-09-11 11:23:04.222 I 16359-4832510   |-im_engine_impl.cpp:1836                 GetUnreadMessageCount                   |Get unread message count by filter:conversation_type:unknown|mark_type:0|conversation_group_name:|conversation_group_id:0|has_unread_count:false|has_group_at_info:false|last_sequence:0|count:0
TIM: 2023-09-11 11:23:04.227 I 16359-4832510   |-c2c_history_message.cpp:75              GetHistoryMessageList                   |user_id:1694583190168981539|count:20|to_older_message:true|get_cloud_message:true|from_position:<nullptr>|begin_time:0|period_time:0|sequence_list size:0|task_id:3481341207
TIM: 2023-09-11 11:23:04.228 I 16359-4832510   |-c2c_history_message.cpp:101             OnGetLocalMessageList                   |message_count:8|task_id:3481341207
TIM: 2023-09-11 11:23:04.228 I 16359-4832510   |-c2c_history_message.cpp:166             OnGetConversationInfo                   |conversation_info:conversation_key:c2c_1694583190168981539|is_place_head:false|unread message count:1|active time:101|c2c remark:|nickname:科大讯飞-ailab|face url:https://dapp-1317092382.cos.ap-shanghai.myqcloud.com/test/xunfei3.png|read timestamp:1694402577|receipt timestamp:0|last message(id):144115243265944113-1694402578-693432741|draft nullptr|group at list:|custom_data:|mark_value:0|conversation group ids:|conversation group names:||task_id:3481341207
2023-09-11 11:23:04.287605+0800 TaoliDance[16359:4832208] getAIDenoiseSignature failed, code: 7013, desc: not support ai denoise
TIM: 2023-09-11 11:23:04.325 I 16359-4832510   |-c2c_cloud_message.cpp:225               OnGetConversationInfo                   |conversation_info:conversation_key:c2c_1694583190168981539|is_place_head:false|unread message count:1|active time:101|c2c remark:|nickname:科大讯飞-ailab|face url:https://dapp-1317092382.cos.ap-shanghai.myqcloud.com/test/xunfei3.png|read timestamp:1694402577|receipt timestamp:0|last message(id):144115243265944113-1694402578-693432741|draft nullptr|group at list:|custom_data:|mark_value:0|conversation group ids:|conversation group names:|
TIM: 2023-09-11 11:23:04.325 I 16359-4832510   |-c2c_history_message.cpp:194             OnGetCloudMessageList                   |is_all_message_fetched:1|message_count:8|task_id:3481341207
TIM: 2023-09-11 11:23:04.326 I 16359-4832510   |-c2c_history_message.cpp:277             OnGetCloudMessageStatus                 |task_id:3481341207
TIM: 2023-09-11 11:23:04.326 I 16359-4832510   |-c2c_history_message.cpp:410             OnGetCloudMessageStatus                 |there is no more messages, not continue...|task_id:3481341207
TIM: 2023-09-11 11:23:04.326 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1694583190168981539|client_time:1694402578|server_time:1694402578|sequence:1955986410|random:693432741|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.326 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1699706145471385649|client_time:1694402576|server_time:1694402577|sequence:2386903971|random:3359114556|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.326 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1694583190168981539|client_time:1694400582|server_time:1694400582|sequence:226130615|random:464292842|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.327 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1699706145471385649|client_time:1694400581|server_time:1694400581|sequence:2386903970|random:3359114555|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.327 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1694583190168981539|client_time:1694400429|server_time:1694400429|sequence:1509116125|random:59946943|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.327 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1699706145471385649|client_time:1694400427|server_time:1694400427|sequence:2386903969|random:3359114554|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.327 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1694583190168981539|client_time:1694246418|server_time:1694246418|sequence:1652507950|random:1710921323|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.327 I 16359-4832510   |-c2c_history_message.cpp:476             ProcessMessageList                      |sender_user_id:1699706145471385649|client_time:1694246417|server_time:1694246417|sequence:2349369481|random:1280930216|message_status:success|task_id:3481341207
TIM: 2023-09-11 11:23:04.327 I 16359-4832510   |-c2c_history_message.cpp:531             OnSupplyUserInfo                        |NotifyResult|task_id:3481341207
2023-09-11 11:23:04.327823+0800 TaoliDance[16359:4832208] getGroupMessageReceipts failed, code: 6017, desc: invalid messages
TIM: 2023-09-11 11:23:04.474 I 16359-4832510   |-conversation_unread_info.cpp:683        OnGetUnreadMessageCountFromStorage      |filter:conversation_type:unknown|mark_type:0|conversation_group_name:|conversation_group_id:0|has_unread_count:false|has_group_at_info:false|last_sequence:0|count:0|total_unread_count(storage):1
2023-09-11 11:23:04.799647+0800 TaoliDance[16359:4832208] gesture = <_UISystemGestureGateGestureRecognizer: 0x151f10440; state = Possible; delaysTouchesEnded = NO; view = <UIWindow: 0x151f0ba90>>
2023-09-11 11:23:04.799833+0800 TaoliDance[16359:4832208] delaysTouchesBegan = NO
2023-09-11 11:23:04.799908+0800 TaoliDance[16359:4832208] delaysTouchesEnded = NO
2023-09-11 11:23:04.800044+0800 TaoliDance[16359:4832208] gesture = <_UISystemGestureGateGestureRecognizer: 0x151f0f350; state = Possible; view = <UIWindow: 0x151f0ba90>>
2023-09-11 11:23:04.800133+0800 TaoliDance[16359:4832208] delaysTouchesBegan = NO
2023-09-11 11:23:04.800200+0800 TaoliDance[16359:4832208] delaysTouchesEnded = YES
TIM: 2023-09-11 11:23:05.846 I 16359-4832510   |-message_read_report.cpp:179             SendC2CMessageReadRequest               |c2c_user_id:1694583190168981539|c2c_tiny_id:144115243265944113|c2c_read_time:1694402585
TIM: 2023-09-11 11:23:05.846 E 16359-4832510   |-im_engine_impl.cpp:1904                 MarkConversation                        |The conversation mark feature is available only to the Ultimate edition. Please upgrade.
TIM: 2023-09-11 11:23:06.113 I 16359-4832510   |-conversation_unread_info.cpp:383        HandleUpdateC2CUnreadInfo               |conversation_key:c2c_1694583190168981539|unread_message_count:0|message_read_timestamp:1694402585

手动调用 cleanConversationUnreadMessageCount:cleanTimestamp:cleanSequence:succ:fail:() 后解决