userProfileViewExists static method
Check if the user profile view exists
만약, otherUserUid
의 프로필을 본 적이 있다면, true 를 반환한다.
이 함수는 action log 에서, overtime 이 발생 할 때, 이전에 본 적인 프로필이면 그대로 볼 수 있게 위해서 사용한다.
Implementation
static Future<bool> userProfileViewExists(String otherUserUid) async {
final snapshot = await userProfileViewRef.child(otherUserUid).get();
return snapshot.exists;
}