refactor(ui): extract virtual-follow-list for message stream

This commit is contained in:
Shantur Rathore
2026-03-01 20:14:21 +00:00
parent 594809538d
commit 48b2d7c5ee
6 changed files with 704 additions and 576 deletions

View File

@@ -0,0 +1,9 @@
export const MESSAGE_ANCHOR_PREFIX = "message-anchor-"
export function getMessageAnchorId(messageId: string) {
return `${MESSAGE_ANCHOR_PREFIX}${messageId}`
}
export function getMessageIdFromAnchorId(anchorId: string) {
return anchorId.startsWith(MESSAGE_ANCHOR_PREFIX) ? anchorId.slice(MESSAGE_ANCHOR_PREFIX.length) : anchorId
}