Java Code Examples for io.rong.imlib.model.Message#getMessageId()

The following examples show how to use io.rong.imlib.model.Message#getMessageId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SessionAtPresenter.java    From LQRWeChat with MIT License 5 votes vote down vote up
private void updateMessageStatus(Message message) {
    for (int i = 0; i < mData.size(); i++) {
        Message msg = mData.get(i);
        if (msg.getMessageId() == message.getMessageId()) {
            mData.remove(i);
            mData.add(i, message);
            mAdapter.notifyDataSetChangedWrapper();
            break;
        }
    }
}
 
Example 2
Source File: SessionAtPresenter.java    From LQRWeChat with MIT License 5 votes vote down vote up
public void recallMessageFromListener(int messageId, RecallNotificationMessage recallNotificationMessage) {
    for (int i = 0; i < mData.size(); i++) {
        Message message = mData.get(i);
        if (message.getMessageId() == messageId) {
            recallMessageAndInsertMessage(recallNotificationMessage, i);
            break;
        }
    }
}