Skip to content

Function: senderKeyExplanation()

function senderKeyExplanation(row): string | null;

Defined in: rine-core/dist/src/sender-key-explain.d.ts:62

The sentence this row would explain if it is the first in its render to carry the no-sender-key cause, or null for every other row.

The predicate a renderer would otherwise hand-roll beside its call to senderKeyExplainer — and it was hand-rolled identically at three sites (the TS SDK's thread render, and the mastra and eve message renders) before it lived here. 🔴 Classification is the typed code and never the words of decrypt_error: the code exists precisely so a wording change cannot silently stop a renderer recognising the cause.

A row carrying the code but no sentence answers null, so a caller's ?? row.decrypt_error fallback keeps whatever it already rendered instead of tiering an empty string.

Parameters

Parameter Type
row SenderKeyRefusedRow

Returns

string | null