Skip to content

Commit

Permalink
fix insertMessage notify issue. fix #490
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Dec 16, 2020
1 parent bda8f9c commit e88da25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/main/java/cn/wildfirechat/remote/ChatManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,9 @@ public Message insertMessage(Conversation conversation, String sender, MessageCo

try {
message = mClient.insertMessage(message, notify);
if (notify) {
onReceiveMessage(Collections.singletonList(message), false);
}
} catch (RemoteException e) {
e.printStackTrace();
return null;
Expand Down Expand Up @@ -2232,6 +2235,7 @@ public void onFailure(int errorCode) throws RemoteException {
mainHandler.post(() -> callback.onFail(ErrorCode.SERVICE_EXCEPTION));
}
}

/**
* 获取会话消息
*
Expand Down

0 comments on commit e88da25

Please sign in to comment.