Last active
August 7, 2020 21:44
-
-
Save AlexPrestonSB/3de5452c54063057d670dfa4d3e1a610 to your computer and use it in GitHub Desktop.
Getting updates for read receipts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Sender Side | |
// To listen to an update from all the other channel members' client apps, implement the 'onReadReceiptUpdated()' with things to do when notified. | |
SendBird.addChannelHandler(UNIQUE_HANDLER_ID, new SendBird.ChannelHandler() { | |
@Override | |
public void onReadReceiptUpdated(GroupChannel groupChannel) { | |
if (currentGroupChannel.getUrl().equals(groupChannel.getUrl())) { | |
// For example, code for redrawing a channel view. | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment