Page MenuHomePhabricator

[web] Skip `loop` property when dispatching updateMultimediaMessage
ClosedPublic

Authored by bartek on Mon, Sep 23, 2:04 AM.
Tags
None
Referenced Files
F2842181: D13419.diff
Sun, Sep 29, 12:19 PM
Unknown Object (File)
Sat, Sep 28, 5:09 PM
Unknown Object (File)
Sat, Sep 28, 1:33 PM
Unknown Object (File)
Wed, Sep 25, 12:41 AM
Unknown Object (File)
Wed, Sep 25, 12:41 AM
Unknown Object (File)
Wed, Sep 25, 12:40 AM
Unknown Object (File)
Wed, Sep 25, 12:05 AM
Subscribers

Details

Summary

Resolves 1 from ENG-9345.
We shouldn't add loop property when updating photo multimedia message. Otherwise, the DM Ops validator would reject such message.

Test Plan

Quickly-sent a DM and made sure the payload doesn't contain the loop property the DM op is processed successfully on recipient side.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
This revision is now accepted and ready to land.Mon, Sep 23, 2:37 AM

Is there a risk here that the loop property isn't being populated correctly where it should be? I believe this is meant to be used for video, where we want the video to autoplay, and then loop back to the start when it finishes and continue playing. Not sure it works correctly, but ideally we can avoid breaking it more

Is there a risk here that the loop property isn't being populated correctly where it should be? I believe this is meant to be used for video, where we want the video to autoplay, and then loop back to the start when it finishes and continue playing. Not sure it works correctly, but ideally we can avoid breaking it more

Yes it's used only for videos. I made sure that here in web input-state-container it's only used for upload calls and not for displaying videos. Since we're not uploading videos from web, it won't break anything.