crash of id and setConversationCheckAll

Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
zhouhongli2023 2024-09-11 10:20:05 +08:00
parent c36d6a01e2
commit eb4d7cf404

View File

@ -136,7 +136,6 @@ export default class ConversationListController {
delItem: number;
// conversation list adapters
conversationListDataSource: ConversationListDataSource = new ConversationListDataSource();
private checkedStatus: Set<number> = new Set<number>();
static getInstance() {
if (ConversationCtrl == null) {
@ -228,9 +227,7 @@ export default class ConversationListController {
this.isMultipleSelectState = true;
}
if (this.messageList[index].isCbChecked != oldStates && this.messageList[index].isCbChecked == true) {
this.conversationSelectedNumber = 1;
this.checkedStatus.clear();
this.checkedStatus.add(index);
this.conversationSelectedNumber ++;
}
this.conversationListDataSource.notifyDataChange(index);
this.setConversationCheckAll(common.int.CHECKBOX_SELECT_UNKNOWN);