mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-06-13 18:31:16 +08:00
Ignore managed hide flag in history hashes
This commit is contained in:
@@ -208,10 +208,15 @@ export function stableHashString(text) {
|
||||
}
|
||||
|
||||
export function buildMessageHash(message) {
|
||||
const managedHideMarker = Boolean(
|
||||
message?.extra &&
|
||||
typeof message.extra === "object" &&
|
||||
message.extra.__st_bme_hide_managed === true,
|
||||
);
|
||||
const swipeId = Number.isFinite(message?.swipe_id) ? message.swipe_id : null;
|
||||
const payload = JSON.stringify({
|
||||
isUser: Boolean(message?.is_user),
|
||||
isSystem: Boolean(message?.is_system),
|
||||
isSystem: managedHideMarker ? false : Boolean(message?.is_system),
|
||||
text: String(message?.mes || ""),
|
||||
swipeId,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user