Merge branch 'events-fix-typo' into 'master'
[Event] Fix typo See merge request famedly/famedlysdk!173
This commit is contained in:
commit
929b26ddbe
|
@ -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