mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-11 03:17:02 +00:00
Merge pull request #186 from coracle-social/flotilla-180-rooms-disappear
Save rooms to local storage
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
PROFILE,
|
PROFILE,
|
||||||
RELAYS,
|
RELAYS,
|
||||||
BLOSSOM_SERVERS,
|
BLOSSOM_SERVERS,
|
||||||
|
ROOMS,
|
||||||
getRelaysFromList,
|
getRelaysFromList,
|
||||||
} from "@welshman/util"
|
} from "@welshman/util"
|
||||||
import {Nip46Broker, makeSecret} from "@welshman/signer"
|
import {Nip46Broker, makeSecret} from "@welshman/signer"
|
||||||
@@ -212,7 +213,11 @@
|
|||||||
limit: 10_000,
|
limit: 10_000,
|
||||||
repository,
|
repository,
|
||||||
rankEvent: (e: TrustedEvent) => {
|
rankEvent: (e: TrustedEvent) => {
|
||||||
if ([PROFILE, FOLLOWS, MUTES, RELAYS, BLOSSOM_SERVERS, INBOX_RELAYS].includes(e.kind)) {
|
if (
|
||||||
|
[PROFILE, FOLLOWS, MUTES, RELAYS, BLOSSOM_SERVERS, INBOX_RELAYS, ROOMS].includes(
|
||||||
|
e.kind,
|
||||||
|
)
|
||||||
|
) {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user