fetchOwnProfile method

Future<Profile> fetchOwnProfile({
  1. bool getFromRooms = true,
  2. bool cache = true,
})

Returns the user's own displayname and avatar url. In SDN it is possible that one user can have different displaynames and avatar urls in different rooms. This returns the profile from the first room by default, override getFromRooms to false to fetch from node.

Implementation

Future<Profile> fetchOwnProfile({
  bool getFromRooms = true,
  bool cache = true,
}) =>
    getProfileFromUserId(
      userID!,
      getFromRooms: getFromRooms,
      cache: cache,
    );