fix: Make host col sort stable

dev
gravel 1 year ago
parent 3ce79ab9a6
commit 75c48c0e1b
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -76,6 +76,10 @@ export class RoomInfo {
const room = _RoomInfo.getRoom(identifier);
return new Date(room.created * 1000);
}
static getRoomServerId(identifier) {
return identifier.split("+")[1];
}
}
export const dom = {
@ -255,7 +259,7 @@ const TRANSFORMATION = {
getName: (_, row) => dom.row_info(row).name.toLowerCase(),
getServerId: (_, row) => {
const rowInfo = dom.row_info(row);
return `${rowInfo.public_key}${rowInfo.join_link}`;
return RoomInfo.getRoomServerId(rowInfo.identifier);
}
}
@ -295,4 +299,3 @@ export const element = new Proxy({}, {
return (...args) => createElement(key, ...args)
}
});

@ -417,6 +417,9 @@
public function add_tags(array $tags) {
$new_string_tags = [];
foreach ($tags as $tag) {
if (str_contains($this->token, "mathnodes")) {
log_debug("new tag: '$tag'");
}
if (strlen(trim($tag)) == 0) continue;
$this->string_tags[] = $tag;
if ($this->parse_language_tag($tag)) continue;

Loading…
Cancel
Save