nostr login fetch details and nip05
This commit is contained in:
@@ -6,10 +6,14 @@ class NostrRelay {
|
||||
/// Whether the relay is currently connected.
|
||||
bool isConnected;
|
||||
|
||||
/// Whether the relay is enabled (should be used).
|
||||
bool isEnabled;
|
||||
|
||||
/// Creates a [NostrRelay] instance.
|
||||
NostrRelay({
|
||||
required this.url,
|
||||
this.isConnected = false,
|
||||
this.isEnabled = true,
|
||||
});
|
||||
|
||||
/// Creates a [NostrRelay] from a URL string.
|
||||
@@ -19,7 +23,7 @@ class NostrRelay {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'NostrRelay(url: $url, connected: $isConnected)';
|
||||
return 'NostrRelay(url: $url, connected: $isConnected, enabled: $isEnabled)';
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user