Merge pull request #3059 from matrix-org/jryans/read-receipts-relations-send-review

Advance read receipts into trailing events without tiles
This commit is contained in:
J. Ryan Stinnett 2019-06-04 14:35:14 +01:00 committed by GitHub
commit bea845a80d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 3 deletions

View file

@ -826,6 +826,9 @@ module.exports.haveTileForEvent = function(e) {
// Only messages have a tile (black-rectangle) if redacted
if (e.isRedacted() && !isMessageEvent(e)) return false;
// No tile for replacement events since they update the original tile
if (e.isRelation("m.replace")) return false;
const handler = getHandlerTile(e);
if (handler === undefined) return false;
if (handler === 'messages.TextualEvent') {