Allow empty value on event attributes

This commit is contained in:
Ethan Frey 2021-02-12 13:22:53 +01:00
parent c0f30bdfca
commit 15dcafd7e8

View File

@ -101,7 +101,7 @@ interface RpcAttribute {
function decodeAttribute(attribute: RpcAttribute): responses.Attribute {
return {
key: fromBase64(assertNotEmpty(attribute.key)),
value: fromBase64(assertNotEmpty(attribute.value)),
value: fromBase64(optional(attribute.value, "")),
};
}