feat: 会话移除

This commit is contained in:
guozhigq
2024-06-15 17:03:52 +08:00
parent e051e77856
commit f62eae55d2
7 changed files with 105 additions and 23 deletions

View File

@ -71,4 +71,10 @@ class WhisperController extends GetxController {
sessionList.insert(0, currentItem);
sessionList.refresh();
}
// 移除会话
void removeSessionMsg(int talkerId) {
sessionList.removeWhere((p0) => p0.talkerId == talkerId);
sessionList.refresh();
}
}