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.
This commit is contained in:
parent
e958e0ecc7
commit
6db0e82ca7
@ -17,7 +17,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class Matrix.Event.State : Matrix.Event.Base {
|
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; }
|
public Json.Node? prev_content { get; set; default = null; }
|
||||||
|
|
||||||
protected override void
|
protected override void
|
||||||
|
Loading…
Reference in New Issue
Block a user