Skip to content

update ranking of prvs, only load once #4383

@tomholub

Description

@tomholub

I guess, needSigning and expiration should be considered here too,
so rank function would be too complicated.
We'd be better off with a sorting lambda like

.sort( (a, b) => {
  if (needSigning && a.senderKis.length && !b.senderKis.length) {
    return -1;
  }
  if (needSigning && !a.senderKis.length && b.senderKis.length) {
    return 1;
  }
  ... other conditions
}

Originally posted by @rrrooommmaaa in #4372 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions