mautrix / telegram

A Matrix-Telegram hybrid puppeting/relaybot bridge
https://matrix.to/#/#telegram:maunium.net
GNU Affero General Public License v3.0
1.34k stars 174 forks source link

Avatar of puppet changes on every bridged puppet's message #889

Open jpruciak opened 1 year ago

jpruciak commented 1 year ago

This is probably due to new Telegram feature making it possible to set contacts-only avatar. Setting allow_contact_info: false doesn't fix the issue. My setup have at least one user with this tg user being in contacts and at least one user with this tg user not being in contacts.

This is how it looks in message log: image

Avatar is not being reuploaded to matrix, it's just changing one way and another.

I'm running latest develop build as of today.

jpruciak commented 1 year ago

Bug seems to trigger only when message is sent to the room where there are users having bw in contacts. I cannot replicate by just talking with bw on DM.

maltee1 commented 1 year ago

I don't have a solution, but if you can confirm that one of the avatars is the contact avatar a bridge user in that room has set, it would probably help fix the issue

0x8008 commented 1 year ago

Hi,

as the user seen in the report screenshot, I can confirm that both of the avatars are correct - and set by me on Telegram's side using the "public avatar" feature introduced earlier this year; however, my older avatars are still public and visible to all the users - and my hypothesis is that the bridge somehow gets confused due to the public avatar implementation on Telegram's side (or, maybe, something gets screwed up while chatting in other groups?).

I hope that this "analysis" and "explanation" is of any use.