Fix lastMessageRead when sending message to an open chat window