feat: 私信

This commit is contained in:
guozhigq
2024-06-15 16:03:45 +08:00
parent c4441dccb2
commit 5e63f0da7b
7 changed files with 373 additions and 278 deletions

View File

@ -62,4 +62,13 @@ class WhisperController extends GetxController {
Future onRefresh() async {
querySessionList('onRefresh');
}
void refreshLastMsg(int talkerId, String content) {
final SessionList currentItem =
sessionList.where((p0) => p0.talkerId == talkerId).first;
currentItem.lastMsg!.content['content'] = content;
sessionList.removeWhere((p0) => p0.talkerId == talkerId);
sessionList.insert(0, currentItem);
sessionList.refresh();
}
}