Skip to content

Commit

Permalink
Disconnect when leave channel activity
Browse files Browse the repository at this point in the history
  • Loading branch information
tien-awair committed May 16, 2022
1 parent 32607ee commit 8e28771
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ protected void connect() {
public void onDestroy() {
super.onDestroy();
SendBird.removeConnectionHandler(CONNECTION_HANDLER_ID);
SendBirdUIKit.disconnect(() -> {
Logger.dev(">> BaseFragment::disconnect()");
});
}

@Override
Expand Down

0 comments on commit 8e28771

Please sign in to comment.