diff --git a/node/test/test.js b/node/test/test.js index a467c2494..e3e0a1860 100644 --- a/node/test/test.js +++ b/node/test/test.js @@ -440,12 +440,6 @@ describe('Offline Tests with unconfigured account', function () { expect(blobPath.startsWith(blobs)).to.be.true expect(blobPath.includes('image')).to.be.true expect(blobPath.endsWith('.jpeg')).to.be.true - - context.setChatProfileImage(chatId, null) - expect(context.getChat(chatId).getProfileImage()).to.be.equal( - null, - 'image is null' - ) }) it('test setting ephemeral timer', function () { diff --git a/src/chat.rs b/src/chat.rs index 6633e7fbe..2c664e4c5 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -4368,8 +4368,16 @@ mod tests { assert_eq!(a1_chat.grpid, a2_chat.grpid); assert_eq!(a1_chat.name, "foo"); assert_eq!(a2_chat.name, "foo"); - assert_eq!(a1_chat.get_profile_image(&a1).await?, None); - assert_eq!(a2_chat.get_profile_image(&a2).await?, None); + assert!(a1_chat + .get_profile_image(&a1) + .await? + .unwrap() + .ends_with("icon-group.png")); + assert!(a2_chat + .get_profile_image(&a2) + .await? + .unwrap() + .ends_with("icon-group.png")); assert_eq!(get_chat_contacts(&a1, a1_chat_id).await?.len(), 1); assert_eq!(get_chat_contacts(&a2, a2_chat_id).await?.len(), 1);