-
-
Notifications
You must be signed in to change notification settings - Fork 218
msgconv,handewhatsapp: Bridge "Live photos" as GIFs #845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
are we only mapping the gif/live photo and discarding the regular one? it's better to map both since people will want to see the regular pic too |
Can you provide me with the structure of the normal photo? I am mapping both parent and child photos. Seems like the parent is the still image and the child is the motion version. |
What should happen is that the photo is bridged then edited to be a GIF |
|
for first iteration, we should leave the original intact and just map the child as a new gif message if possible (does this cause collisions?) |
This will cause a duplicated message, but sure I'll get it working that way, just requires removing some logic. |
Co-authored-by: Tulir Asokan <[email protected]>
tulir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good
| case *waE2E.VideoMessage: | ||
| data.MsgType = event.MsgVideo | ||
| if msg.GetGifPlayback() { | ||
| pairedMediaType := msg.GetContextInfo().GetPairedMediaType() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, is the context info inside the associated child message or outside? might need to copy it over if it's outside
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, MessageContextInfo is outside, ContextInfo is of course inside. I don't think there's anything important in MessageContextInfo so this should be fine as is
Handles Live photos as a GIF and prevents attachment duplication.
Resolves BRI-33301