message previews work

This commit is contained in:
or-else
2021-02-03 19:04:25 -08:00
parent 4d972791af
commit 6ace7e72ab
9 changed files with 252 additions and 115 deletions
+1 -1
View File
@@ -688,7 +688,7 @@ class TinodeWeb extends React.Component {
// Sending "received" notifications
tnData(data) {
const topic = this.tinode.getTopic(data.topic);
if (topic.msgStatus(data) >= Tinode.MESSAGE_STATUS_SENT && data.from != this.state.myUserId) {
if (topic.msgStatus(data, true) >= Tinode.MESSAGE_STATUS_SENT && data.from != this.state.myUserId) {
clearTimeout(this.receivedTimer);
this.receivedTimer = setTimeout(() => {
this.receivedTimer = undefined;