fix test for non-olm

This commit is contained in:
Sorunome 2020-06-05 12:07:06 +02:00
parent f065a92445
commit fe3a697a15
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -317,7 +317,11 @@ void main() {
expect(eventUpdateList.length, 2);
expect(eventUpdateList[0].type, 'm.new_device');
expect(eventUpdateList[1].type, 'm.room_key');
if (matrix.encryptionEnabled) {
expect(eventUpdateList[1].type, 'm.room_key');
} else {
expect(eventUpdateList[1].type, 'm.room.encrypted');
}
});
test('Login', () async {