mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-15 11:48:21 +00:00
fix: range error
This commit is contained in:
@ -233,7 +233,7 @@ StreamInfo extractStreamInfo(Nip01Event ev) {
|
||||
|
||||
String getHost(Nip01Event ev) {
|
||||
return ev.tags.firstWhere(
|
||||
(t) => t[0] == "p" && t.length > 2 && t[3] == "host",
|
||||
(t) => t[0] == "p" && t.length > 3 && t[3] == "host",
|
||||
orElse: () => ["p", ev.pubKey], // fake p tag with event pubkey
|
||||
)[1];
|
||||
}
|
||||
|
Reference in New Issue
Block a user