Show missing relays for DMs when the DMRelayList event is empty.

This commit is contained in:
Vitor Pamplona 2024-05-29 15:22:19 -04:00
parent 90c9deecd4
commit 56664afa4e

View File

@ -104,7 +104,7 @@ fun ObserveRelayListForDMsAndDisplayIfNotFound(
ObserveRelayListForDMs(
accountViewModel = accountViewModel,
) { relayListEvent ->
if (relayListEvent == null) {
if (relayListEvent == null || relayListEvent.relays().isEmpty()) {
AddInboxRelayForDMCard(
accountViewModel = accountViewModel,
nav = nav,