Skip to content

Add photo hash mismatch to avatar logs

If photo hash is advertized in presence and the photo hash is not yet known, vcard is being requested. After vcard has been received at least two failures can occur:

  • there is no photo at all;
  • photo has different hash than advertized. Let log them for quick identification

Addresses: #9171 (closed)


Additional comments:

Example for case 1:

06/05/2018 14:14:40 (I) gajim.avatar Received (vCard): Anton None
06/05/2018 14:14:40 (W) gajim.avatar Photo hash mismatch, requested c60b5e0190ffdc8ea96f0d4fc01917393595b118
06/05/2018 14:14:40 (D) gajim.avatar Draw Groupchat Avatar: Anton None

Example for case 2:

06/05/2018 14:14:36 (I) gajim.avatar Update (vCard): zuglufttier 291ab0f81fe5038a0e009530880961e27ed64c86
06/05/2018 14:14:36 (I) gajim.avatar Request (vCard): zuglufttier
06/05/2018 14:15:09 (I) gajim.avatar Received (vCard): zuglufttier 601aea06dc7bc78444e126b1bf2e6ef255f6ffe6
06/05/2018 14:15:09 (W) gajim.avatar Photo hash mismatch, requested 291ab0f81fe5038a0e009530880961e27ed64c86
06/05/2018 14:15:09 (D) gajim.avatar Draw Groupchat Avatar: zuglufttier 601aea06dc7bc78444e126b1bf2e6ef255f6ffe6
Edited by Andrey Gursky

Merge request reports