Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -82,7 +82,7 @@ class WhisperDetailController extends CommonListController<RspSessionMsg, Msg> {
SmartDialog.showToast('请先登录');
return;
}
final result = await ImGrpc.sendMsg(
final res = await ImGrpc.sendMsg(
senderUid: account.mid,
receiverId: mid!,
content: msgType == 5
@@ -91,7 +91,7 @@ class WhisperDetailController extends CommonListController<RspSessionMsg, Msg> {
msgType: MsgType.values[msgType ?? (picMsg != null ? 2 : 1)],
);
SmartDialog.dismiss();
if (result.isSuccess) {
if (res.isSuccess) {
if (msgType == 5) {
loadingState
..value.data![index!].msgStatus = 1
@@ -103,7 +103,7 @@ class WhisperDetailController extends CommonListController<RspSessionMsg, Msg> {
SmartDialog.showToast('发送成功');
}
} else {
result.toast();
res.toast();
}
_isSending = false;
}