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:01:31 +00:00
parent 11025e2ba9
commit 7e5d4b8ce8
2 changed files with 37 additions and 1 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;
}