File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ip-messaging/reachability-indicator/process-user-updates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11// function called after client init to set up event handlers
22function registerEventHandlers ( ) {
33 // Register UserInfo specific event handler
4- ipMessagingClient . on ( 'userInfoUpdated' , handleUserUpdate ( user ) ) ;
4+ chatClient . on ( 'userInfoUpdated' , handleUserUpdate ( user ) ) ;
55}
66
77// function to handle any UserInfo updates
88function handleUserUpdate ( user ) {
99 // handle reachability indicator
10- if ( ipMessagingClient . reachabilityEnabled ) {
10+ if ( chatClient . reachabilityEnabled ) {
1111 // call a function which will update the relevant UI elements to show the Reachability state for the User
1212 renderUserReachability ( user . online , user . notifiable ) ;
1313 }
You can’t perform that action at this time.
0 commit comments