mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
add redaction mock utility fn
This commit is contained in:
parent
b153613200
commit
8991632105
@ -33,3 +33,7 @@ export function withTextBody(body, event) {
|
|||||||
export function withTxnId(txnId, event) {
|
export function withTxnId(txnId, event) {
|
||||||
return Object.assign({}, event, {unsigned: {transaction_id: txnId}});
|
return Object.assign({}, event, {unsigned: {transaction_id: txnId}});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function withRedacts(redacts, reason, event) {
|
||||||
|
return Object.assign({redacts, content: {reason}}, event);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user