limeV2Engine->getLimeManager()->set_peerDeviceStatus(event->getDeviceAddress().asString(),lime::PeerDeviceStatus::unsafe);// WARNING no effect if user not in lime db
// Otherwise check if this new device downgrades the chatroom security level, in which case a security event is created
// TODO Check that the lowest security level is reached for everyone because of the security alert and Pauline2 set to unsafe status
BC_ASSERT_EQUAL(linphone_chat_room_get_security_level(marieCr),LinphoneChatRoomSecurityLevelEncrypted,int,"%d");// TODO shall be unsafe thanks to new LIMEv2 API
BC_ASSERT_EQUAL(linphone_chat_room_get_security_level(laureCr),LinphoneChatRoomSecurityLevelEncrypted,int,"%d");// TODO shall be unsafe thanks to new LIMEv2 API
// Laure sends a messages to trigger a LIMEv2 security alerts because maxNumberOfDevicePerParticipant has been exceeded