Commit c8a983a0 authored by Wilko Manger's avatar Wilko Manger

Use better null check for unsigned in power levels

parent be4d8778
......@@ -38,8 +38,8 @@ class PowerLevelsChangeEvent extends StateEvent {
return null;
final previousContent =
json.containsKey('unsigned') ? json['unsigned']['prev_content'] : null;
final unsigned = json['unsigned'];
final previousContent = unsigned != null ? unsigned['prev_content'] : null;
return PowerLevelsChangeEvent(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment