@@ -155,27 +155,19 @@ async fn test_create_verified_oneonone_chat() -> Result<()> {
155
155
tcm. send_recv ( & fiona_new, & alice, "I have a new device" )
156
156
. await ;
157
157
158
- // The chat should be and stay unprotected
158
+ // Alice gets a new unprotected chat with new Fiona contact.
159
159
{
160
- let chat = alice. get_chat ( & fiona_new) . await ;
160
+ let chat = alice. get_pgp_chat ( & fiona_new) . await ;
161
161
assert ! ( !chat. is_protected( ) ) ;
162
- assert ! ( chat. is_protection_broken( ) ) ;
163
-
164
- let msg1 = get_chat_msg ( & alice, chat. id , 0 , 3 ) . await ;
165
- assert_eq ! ( msg1. get_info_type( ) , SystemMessage :: ChatProtectionEnabled ) ;
166
-
167
- let msg2 = get_chat_msg ( & alice, chat. id , 1 , 3 ) . await ;
168
- assert_eq ! ( msg2. get_info_type( ) , SystemMessage :: ChatProtectionDisabled ) ;
169
162
170
- let msg2 = get_chat_msg ( & alice, chat. id , 2 , 3 ) . await ;
171
- assert_eq ! ( msg2 . text, "I have a new device" ) ;
163
+ let msg = get_chat_msg ( & alice, chat. id , 0 , 1 ) . await ;
164
+ assert_eq ! ( msg . text, "I have a new device" ) ;
172
165
173
166
// After recreating the chat, it should still be unprotected
174
167
chat. id . delete ( & alice) . await ?;
175
168
176
169
let chat = alice. create_chat ( & fiona_new) . await ;
177
170
assert ! ( !chat. is_protected( ) ) ;
178
- assert ! ( !chat. is_protection_broken( ) ) ;
179
171
}
180
172
181
173
Ok ( ( ) )
0 commit comments