Warn unknown devices: treat MXDeviceUnknown as MXDeviceUnverified

This commit is contained in:
manuroe 2017-02-14 11:30:49 +01:00
parent a3dcfa7ddf
commit 235b47078e
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,7 @@
/*
Copyright 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@ -49,6 +50,7 @@
switch (deviceInfo.verified)
{
case MXDeviceUnknown:
case MXDeviceUnverified:
{
self.deviceStatus.image = [UIImage imageNamed:@"e2e_warning"];

View file

@ -1,5 +1,6 @@
/*
Copyright 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -51,6 +52,7 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
{
switch (deviceInfo.verified)
{
case MXDeviceUnknown:
case MXDeviceUnverified:
{
encryptionIcon = @"e2e_warning";