From 6db0e82ca711b54aa87ce15e8416a3e609678e30 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 9 Mar 2016 07:18:21 +0000 Subject: [PATCH] Make _state_key of Event.State protected Some state events give a meaning to state_key but having a separate property is a bit of overkill. --- src/matrix-event-state-base.vala | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/matrix-event-state-base.vala b/src/matrix-event-state-base.vala index 52a4d1d..43df804 100644 --- a/src/matrix-event-state-base.vala +++ b/src/matrix-event-state-base.vala @@ -17,7 +17,19 @@ */ public abstract class Matrix.Event.State : Matrix.Event.Base { - public string? state_key { get; set; default = null; } + protected string? _state_key; + + public string? state_key { + get { + return _state_key; + } + + set { + _state_key = value; + } + + default = null; + } public Json.Node? prev_content { get; set; default = null; } protected override void