0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-30 17:34:04 +01:00

ircd:Ⓜ️ Fix pretty(event) format when lacking a digest.

This commit is contained in:
Jason Volk 2019-07-10 06:51:23 -07:00
parent 4958170e4b
commit 9af1e5af4e

View file

@ -303,8 +303,11 @@ ircd::m::pretty(std::ostream &s,
<< " :" << event_id; << " :" << event_id;
for(const auto &[algorithm, digest] : ref_hash) for(const auto &[algorithm, digest] : ref_hash)
s << " " << unquote(algorithm) {
<< ": " << unquote(digest); s << " " << unquote(algorithm);
if(digest)
s << ": " << unquote(digest);
}
s << std::endl; s << std::endl;
} }
@ -320,8 +323,11 @@ ircd::m::pretty(std::ostream &s,
<< " :" << event_id; << " :" << event_id;
for(const auto &[algorithm, digest] : ref_hash) for(const auto &[algorithm, digest] : ref_hash)
s << " " << unquote(algorithm) {
<< ": " << unquote(digest); s << " " << unquote(algorithm);
if(digest)
s << ": " << unquote(digest);
}
s << std::endl; s << std::endl;
} }