Merge branch 'events-fix-typo' into 'master'

[Event] Fix typo

See merge request famedly/famedlysdk!173
This commit is contained in:
Christian Pauly 2020-01-29 12:11:21 +00:00
commit 929b26ddbe
2 changed files with 2 additions and 2 deletions

View file

@ -186,7 +186,7 @@ class Event {
return EventTypes.RoomName; return EventTypes.RoomName;
case "m.room.topic": case "m.room.topic":
return EventTypes.RoomTopic; return EventTypes.RoomTopic;
case "m.room.Aliases": case "m.room.aliases":
return EventTypes.RoomAliases; return EventTypes.RoomAliases;
case "m.room.canonical_alias": case "m.room.canonical_alias":
return EventTypes.RoomCanonicalAlias; return EventTypes.RoomCanonicalAlias;

View file

@ -88,7 +88,7 @@ void main() {
event = Event.fromJson(jsonObj, null); event = Event.fromJson(jsonObj, null);
expect(event.type, EventTypes.RoomTopic); expect(event.type, EventTypes.RoomTopic);
jsonObj["type"] = "m.room.Aliases"; jsonObj["type"] = "m.room.aliases";
event = Event.fromJson(jsonObj, null); event = Event.fromJson(jsonObj, null);
expect(event.type, EventTypes.RoomAliases); expect(event.type, EventTypes.RoomAliases);