makeUserOnline static method
Future<void>
makeUserOnline(
- User logInUser
)
Implementation
static Future<void> makeUserOnline(User logInUser) async {
await ChatDBFireStore().setUserLastSeen(logInUser);
/**
* Use online offline feature
* uncomment below code
* and firebase_database: in pubspec
*/
// FirebaseDatabase.instance
// .reference()
// .child("/status/" + logInUser.uid)
// .onDisconnect()
// .set("offline");
// FirebaseDatabase.instance
// .reference()
// .child("/status/" + logInUser.uid)
// .set("online");
}