[Event] Fix typo
This commit is contained in:
parent
2e6a1ab4d4
commit
c710768937
|
@ -186,7 +186,7 @@ class Event {
|
|||
return EventTypes.RoomName;
|
||||
case "m.room.topic":
|
||||
return EventTypes.RoomTopic;
|
||||
case "m.room.Aliases":
|
||||
case "m.room.aliases":
|
||||
return EventTypes.RoomAliases;
|
||||
case "m.room.canonical_alias":
|
||||
return EventTypes.RoomCanonicalAlias;
|
||||
|
|
|
@ -88,7 +88,7 @@ void main() {
|
|||
event = Event.fromJson(jsonObj, null);
|
||||
expect(event.type, EventTypes.RoomTopic);
|
||||
|
||||
jsonObj["type"] = "m.room.Aliases";
|
||||
jsonObj["type"] = "m.room.aliases";
|
||||
event = Event.fromJson(jsonObj, null);
|
||||
expect(event.type, EventTypes.RoomAliases);
|
||||
|
||||
|
|
Loading…
Reference in a new issue