Urgent.News

What's breaking now, across thousands of outlets.

Tech

A shared media gallery for chats and profiles

Open a friend's profile — or a group's info screen — and you can now browse every photo, video, document and link the two participants have exchanged. We call it the shared media gallery , a familiar idea from other messengers, scoped tightly to the conversation between you. The important word there is conversation-scoped . The gallery is not a cross-chat index of everything a user ever sent;…

The shared media gallery is a feature that allows users to view all the photos, videos, documents and links exchanged between them and a friend or group. It is called the shared media gallery to differentiate it from a cross-chat index of everything a user has ever sent. The gallery is scoped to a specific conversation, either a 1:1 chat or a group, and is read-only.

The backend exposes a single service method, fetch_shared_media, which is used by both the 1:1 profile tab and the group screen. The gallery is returned in a conversational order, with the newest items first. Pagination is handled through a cursor, which allows the client to request older media as needed. The feature also ensures that deleted messages are excluded and that encrypted chats are not included.

The resolver used for the gallery is read-only and does not create new conversations, ensuring that the user's access to the conversation is always checked.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Playing video on Flutter Linux desktop with media_kit

Video is the one media type in tonGues that cannot fail quietly. A photo that won't load falls back to an icon tile and most people never notice; a video that won't play looks like the whole app is…

  • Video playback issue on Flutter Linux desktop due to lack of player component
  • VideoPlayerController.initialize() threw UnimplementedError on Linux
  • VideoPlaybackController introduced as abstraction layer for seamless playback

More from Tuesday 13 October →