Skip to content
Snippets Groups Projects
  • Loren Burkholder's avatar
    b1a978ab
    Don't throw error if content is empty · b1a978ab
    Loren Burkholder authored
    If an Unknown message is being constructed for sending, the content
    may be empty, since the msgtype and body are exposed as C++ properties.
    Previously, the to_json function assumed that the content could be
    parsed as valid json, when in fact an empty content would throw an error.
    b1a978ab
    History
    Don't throw error if content is empty
    Loren Burkholder authored
    If an Unknown message is being constructed for sending, the content
    may be empty, since the msgtype and body are exposed as C++ properties.
    Previously, the to_json function assumed that the content could be
    parsed as valid json, when in fact an empty content would throw an error.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.