Created
September 3, 2021 08:20
-
-
Save warodri-sendbird/09534b05533e03763e08aa24e5cec70f to your computer and use it in GitHub Desktop.
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
const handleStateChange = newState => { | |
if (newState === 'active') { | |
sendbird.setForegroundState(); | |
} else { | |
sendbird.setBackgroundState(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment