diff --git a/ViewModels/Sources/ViewModels/RootViewModel.swift b/ViewModels/Sources/ViewModels/RootViewModel.swift index 7708239..afab8b6 100644 --- a/ViewModels/Sources/ViewModels/RootViewModel.swift +++ b/ViewModels/Sources/ViewModels/RootViewModel.swift @@ -54,8 +54,7 @@ public extension RootViewModel { identification.observationErrors .receive(on: RunLoop.main) - .map { [weak self] _ in self?.mostRecentlyUsedIdentityID } - .sink { [weak self] in self?.newIdentitySelected(id: $0) } + .sink { [weak self] _ in self?.newIdentitySelected(id: self?.mostRecentlyUsedIdentityID ) } .store(in: &cancellables) identification.service.updateLastUse() diff --git a/Views/IdentitiesView.swift b/Views/IdentitiesView.swift index 91c288c..4d7b9c0 100644 --- a/Views/IdentitiesView.swift +++ b/Views/IdentitiesView.swift @@ -77,13 +77,17 @@ private extension IdentitiesView { .font(.subheadline) .foregroundColor(.secondary) } else { - Text(identity.handle) - .font(.headline) - .foregroundColor(.secondary) if let instance = identity.instance { + CustomEmojiText( + text: instance.title, + emoji: [], + textStyle: .headline) Text(instance.uri) .font(.subheadline) .foregroundColor(.secondary) + } else { + Text(identity.handle) + .font(.headline) } } Spacer()