Skip to content

Commit

Permalink
fix(iridium): replace profile.get() with profile.state
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwoodland committed Aug 19, 2022
1 parent e5364c7 commit d08a63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/Iridium/friends/FriendsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export default class FriendsManager extends Emitter<IridiumFriendPubsub> {

// Announce to the remote user
if (did !== this.iridium.connector?.id) {
const profile = await this.iridium.profile?.get()
const profile = this.iridium.profile.state
if (!profile) {
logger.error(this.loggerTag, 'network error')
throw new Error(FriendsError.NETWORK_ERROR)
Expand Down Expand Up @@ -419,7 +419,7 @@ export default class FriendsManager extends Emitter<IridiumFriendPubsub> {

// Announce to the remote user
if (didUtils.didString(did) !== this.iridium.connector?.id) {
const profile = await this.iridium.profile?.get()
const profile = this.iridium.profile.state
if (!profile) {
logger.error(this.loggerTag, 'network error')
throw new Error(FriendsError.NETWORK_ERROR)
Expand Down

0 comments on commit d08a63d

Please sign in to comment.