...
 
Commits (2)
......@@ -37,9 +37,8 @@ abstract class MemberChangeEvent extends StateEvent {
return null;
}
final prevContent = json.containsKey('unsigned') && json['unsigned'] != null
? json['unsigned']['prev_content']
: null;
final unsigned = json['unsigned'];
final prevContent = unsigned != null ? unsigned['prev_content'] : null;
final prevDisplayName =
prevContent != null ? prevContent['displayname'] : null;
......
......@@ -4,9 +4,6 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
import 'dart:math';
import 'package:collection/collection.dart';
import 'package:matrix_sdk/src/event/room/room_event.dart';
import 'package:matrix_sdk/src/event/room/state/state_event.dart';
import 'package:matrix_sdk/src/identifier.dart';
......