extractPubKeyMappingsFromFilter method

List<PubkeyMapping> extractPubKeyMappingsFromFilter()

todo: this should not be here, since it is lib code and not spec stuff

Implementation

List<PubkeyMapping> extractPubKeyMappingsFromFilter() {
  /// todo: depending on usecase (feed,profile,notifications) should generate a list of pubKeyMappings
  /// for now just return a simple list of authors with read/write true
  return authors != null
      ? authors!
          .map((author) => PubkeyMapping(
                pubKey: author,
                rwMarker: ReadWriteMarker.readWrite,
              ))
          .toList()
      : [];
}