Skip to content

Commit e88da25

Browse files
committed
fix insertMessage notify issue. fix #490
1 parent bda8f9c commit e88da25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/src/main/java/cn/wildfirechat/remote/ChatManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,9 @@ public Message insertMessage(Conversation conversation, String sender, MessageCo
14121412

14131413
try {
14141414
message = mClient.insertMessage(message, notify);
1415+
if (notify) {
1416+
onReceiveMessage(Collections.singletonList(message), false);
1417+
}
14151418
} catch (RemoteException e) {
14161419
e.printStackTrace();
14171420
return null;
@@ -2232,6 +2235,7 @@ public void onFailure(int errorCode) throws RemoteException {
22322235
mainHandler.post(() -> callback.onFail(ErrorCode.SERVICE_EXCEPTION));
22332236
}
22342237
}
2238+
22352239
/**
22362240
* 获取会话消息
22372241
*

0 commit comments

Comments
 (0)