diff options
Diffstat (limited to 'libdino')
-rw-r--r-- | libdino/src/entity/message.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libdino/src/entity/message.vala b/libdino/src/entity/message.vala index 9c062f73..b11e2622 100644 --- a/libdino/src/entity/message.vala +++ b/libdino/src/entity/message.vala @@ -47,7 +47,11 @@ public class Message : Object { public bool direction { get; set; } public Jid? real_jid { get; set; } public Type type_ { get; set; default = Type.UNKNOWN; } - public string? body { get; set; } + private string? body_; + public string? body { + get { return body_; } + set { body_ = value != null ? value.make_valid() : null; } + } public string? stanza_id { get; set; } public string? server_id { get; set; } public DateTime? time { get; set; } |