fromNip02EventContent static method

UserRelayList fromNip02EventContent(
  1. Nip01Event event
)

Implementation

static UserRelayList fromNip02EventContent(Nip01Event event) {
  return UserRelayList(
      pubKey: event.pubKey,
      relays: ContactList.relaysFromContent(event),
      createdAt: event.createdAt,
      refreshedTimestamp: DateTime.now().millisecondsSinceEpoch ~/ 1000);
}