don't send {not} for own messages; explicit defacs in p2p {sub}

This commit is contained in:
or-else
2019-02-28 13:56:35 +03:00
parent ff619da2b7
commit a042db27e8
6 changed files with 50 additions and 30 deletions
+3 -3
View File
@@ -356,9 +356,9 @@ class MessagesView extends React.Component {
newState.scrollPosition = 0;
}
// Aknowledge all messages, including own messages.
let status = topic.msgStatus(msg);
if (status >= Tinode.MESSAGE_STATUS_SENT) {
// Aknowledge messages except own messages.
const status = topic.msgStatus(msg);
if (status >= Tinode.MESSAGE_STATUS_SENT && msg.from != this.props.myUserId) {
this.props.readTimerHandler(() => {
topic.noteRead(msg.seq);
});