Skip to content

fix(upload): construct referenceId for grouped uploads - #19040

Merged
Antreesy merged 4 commits into
mainfrom
fix/11411/reference-id
Aug 25, 2026
Merged

fix(upload): construct referenceId for grouped uploads#19040
Antreesy merged 4 commits into
mainfrom
fix/11411/reference-id

Conversation

@Antreesy

Copy link
Copy Markdown
Contributor

☑️ Resolves

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

With applied grouping rules (two separate upload initiated within a minute):

🏚️ Before 🏡 After
2026-08-20_15h29_00 2026-08-20_15h28_34

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Integrations with Files sidebar and other apps
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

@Antreesy Antreesy added this to the ⛅ Next Beta/RC (35) milestone Aug 20, 2026
@Antreesy Antreesy self-assigned this Aug 20, 2026
@Antreesy Antreesy added enhancement feature: frontend 🖌️ "Web UI" client feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings labels Aug 20, 2026
@Antreesy Antreesy changed the title Fix/11411/reference fix(upload): construct referenceId for grouped uploads Aug 20, 2026
Comment thread src/stores/upload.ts
- construct referenceId in the following format:
  - /[a-f0-9]{60}-[0-9]{3}/, where:
  - /[a-f0-9]{60}/ - uploadId hashed with SHA-256 algorithm
  - /-/            - mandatory delimiter
  - /[0-9]{3}/     - order of file in given upload (natural integers, padded with zeroes)

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@nickvergessen

Copy link
Copy Markdown
Member

Might make sense to document in

* // A reference string that was given while posting the message to be able to identify a sent message again (only available with `chat-reference-id` capability)
* referenceId: string,

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
@Antreesy
Antreesy enabled auto-merge August 25, 2026 08:47
@Antreesy
Antreesy merged commit a397a42 into main Aug 25, 2026
79 checks passed
@Antreesy
Antreesy deleted the fix/11411/reference-id branch August 25, 2026 10:00
mahibi added a commit to nextcloud/talk-android that referenced this pull request Aug 27, 2026
Files sent from the Upload Preview Screen in one batch now get a
cross-client referenceId (sha256(uploadId)-order, matching
nextcloud/spreed#19040) and render as a single WhatsApp-style grouped
bubble instead of one message per file - an adaptive media grid for
images/videos plus a stacked list for other file types.

Assisted-by: Claude Code:claude-sonnet-5

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement feature: frontend 🖌️ "Web UI" client feature: upload & shares & voice 📤🎙️ Sharing files into a chat and audio recordings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants