diff --git a/lib/famedlysdk.dart b/lib/famedlysdk.dart
index ceda834..1be5324 100644
--- a/lib/famedlysdk.dart
+++ b/lib/famedlysdk.dart
@@ -36,7 +36,7 @@ export 'package:famedlysdk/src/Event.dart';
export 'package:famedlysdk/src/RawEvent.dart';
export 'package:famedlysdk/src/Room.dart';
export 'package:famedlysdk/src/RoomList.dart';
-export 'package:famedlysdk/src/State.dart';
+export 'package:famedlysdk/src/RoomState.dart';
export 'package:famedlysdk/src/Store.dart';
export 'package:famedlysdk/src/Timeline.dart';
export 'package:famedlysdk/src/User.dart';
diff --git a/lib/src/Event.dart b/lib/src/Event.dart
index 8f0feb9..5252693 100644
--- a/lib/src/Event.dart
+++ b/lib/src/Event.dart
@@ -21,7 +21,7 @@
* along with famedlysdk. If not, see .
*/
-import 'package:famedlysdk/src/State.dart';
+import 'package:famedlysdk/src/RoomState.dart';
import 'package:famedlysdk/src/sync/EventUpdate.dart';
import 'package:famedlysdk/src/utils/ChatTime.dart';
@@ -29,7 +29,7 @@ import './Room.dart';
import './RawEvent.dart';
/// Defines a timeline event for a room.
-class Event extends State {
+class Event extends RoomState {
/// The status of this event.
/// -1=ERROR
/// 0=SENDING
diff --git a/lib/src/Room.dart b/lib/src/Room.dart
index 07b0f0d..f27c29d 100644
--- a/lib/src/Room.dart
+++ b/lib/src/Room.dart
@@ -24,7 +24,7 @@
import 'package:famedlysdk/src/Client.dart';
import 'package:famedlysdk/src/Event.dart';
import 'package:famedlysdk/src/RoomAccountData.dart';
-import 'package:famedlysdk/src/State.dart';
+import 'package:famedlysdk/src/RoomState.dart';
import 'package:famedlysdk/src/responses/ErrorResponse.dart';
import 'package:famedlysdk/src/sync/EventUpdate.dart';
import 'package:famedlysdk/src/utils/ChatTime.dart';
@@ -54,7 +54,7 @@ class Room {
int mJoinedMemberCount;
int mInvitedMemberCount;
- Map states = {};
+ Map states = {};
Map roomAccountData = {};
@@ -431,11 +431,11 @@ class Room {
roomAccountData: {},
);
- Map newStates = {};
+ Map newStates = {};
if (states != null) {
List