1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Merge pull request #90 from matrix-org/user_activity_end

Send an event at the end of user activity too and use this to send RRs.
This commit is contained in:
David Baker
2016-01-14 16:27:54 +00:00
2 changed files with 39 additions and 3 deletions

View File

@@ -220,6 +220,12 @@ module.exports = React.createClass({
break;
case 'user_activity':
case 'user_activity_end':
// we could treat user_activity_end differently and not
// send receipts for messages that have arrived between
// the actual user activity and the time they stopped
// being active, but let's see if this is actually
// necessary.
this.sendReadReceipt();
break;
}