meta icon indicating copy to clipboard operation
meta copied to clipboard

Cannot bridge view once media

Open hoangvietfreelancer opened this issue 1 year ago • 5 comments

I got this error in matrix when testing with view once both video and image

Unsupported message (*waArmadilloApplication.Armadillo_Content_RavenMessageMsgr)

Please open in Messenger app

In the bridge logs:

2024-10-14T10:11:28.729Z WRN Unrecognized armadillo content type action="handle remote event" bridge_evt_type=RemoteEventMessage content_type=*waArmadilloApplication.Armadillo_Content_RavenMessageMsgr event_loop_index=21 message_id=7251535068118852856 portal_id=8341548332618616 portal_mxid=!ZwdPctYFgwdzPMpVng:example.com sender_id=100045218265910:4@msgr source_id=100045218265910

hoangvietfreelancer avatar Oct 14 '24 10:10 hoangvietfreelancer

View once message seems to not being displayed as "unsupported message" most of the time. It is just not displayed at all. Once I had the "unsupported message, Open in Instagram : "

android version: 14 beeper version: 4.19.0

TristanL06 avatar Jan 31 '25 10:01 TristanL06

I don't think it can be fixed - these types of media cannot be seen even on official web apps

ireun avatar Feb 07 '25 16:02 ireun

It should at least be marked as "not supported image" to inform that there is a content, as it is in the officiel webapp. For now we don't even know when we receive one of this images.

TristanL06 avatar Feb 07 '25 17:02 TristanL06

Chiming in to propose the Instagram direct_v2/threads/{thread_id}/ endpoint for mobile devices, which can actually retrieve this type of message along with the media URL. Just my 2 cents. Might mess around and fork, but I'd have to take a GoLang 101 crash course first 😅

highda avatar May 07 '25 13:05 highda

I think the https://github.com/mautrix/instagram bridge used to support view-once media? Not 100% sure

Edit: there is ViewMode.Once in the code of the legacy instagram bridge but I'm not sure that it's used anywhere, it's probably ignored/treated like a permanent message.

In the meta bridge there is something specific to WhatsApp: https://github.com/mautrix/meta/blob/bdf1a35814faa1b8823e2accc71c4ed9e17ca7d9/pkg/msgconv/from-whatsapp.go#L285-L293

devnoname120 avatar May 10 '25 09:05 devnoname120