Changeset 0.28.5 (#191)

This commit is contained in:
2026-03-14 22:51:50 +00:00
parent 85d5e3cc13
commit 6f0ad1355c
17 changed files with 2389 additions and 110 deletions

View File

@@ -577,6 +577,22 @@ function _relativeTime(dateStr) {
* Safe to call even if extensions aren't loaded — no-ops gracefully.
*/
function runExtensionPostRender(container) {
// v0.28.5: Render pipe subsumes extension post-renderers.
// The pipe includes compat-shimmed renderers from ctx.renderers.register()
// alongside new sw.pipe.render() filters.
if (typeof sw !== 'undefined' && sw.pipe) {
const renderCtx = {
element: container,
message: null, // batch render — no single message context
channel: {
id: typeof App !== 'undefined' ? App.activeId : null,
type: typeof App !== 'undefined' ? (App.activeType || 'direct') : 'direct',
},
};
sw.pipe._runRender(renderCtx);
return;
}
// Fallback: SDK not loaded (shouldn't happen, but defensive)
if (typeof Extensions !== 'undefined' && Extensions._loaded) {
Extensions.runPostRenderers(container);
}