Fix message types to always have a body

This commit is contained in:
2016-03-17 17:02:44 +01:00
committed by Gergely Polonkai
parent 5254776d4f
commit 3bc8735eb5
4 changed files with 59 additions and 3 deletions

View File

@@ -25,4 +25,18 @@
* sender. This message could also be represented in a different
* colour to distinguish it from regular `m.text` messages.
*/
public class Matrix.Message.Emote : Matrix.Message.Base {}
public class Matrix.Message.Emote : Matrix.Message.Base {
public override void
from_json(Json.Node json_data)
throws Matrix.Error
{
base.from_json(json_data);
}
public override void
to_json(Json.Node json_data)
throws Matrix.Error
{
base.to_json(json_data);
}
}