I have created a internal chat application on my site and I allow members to talk one on one. So lets say member A is talking to member B. I want it so that if member A logs off when member B sends a message I can send them an email saying they have a new message.
Ideally if i could use something like this....
let user = wixUsers.currentUser; let isLoggedIn = user.loggedIn;
But that only works for the current user. If there was something more like this...
let user = wixUsers.User(user's_ID or owner); let isLoggedIn = user.loggedIn;
Any insights or tips would be very appreciated.