Skip to content

Conversation

@rapterjet2004
Copy link
Contributor

@rapterjet2004 rapterjet2004 commented Nov 4, 2025

The CI/CD Analysis check seems to be broken

Screenshot 2025-11-17 at 10 22 57 AM

🚧 TODO

  • Shared Items support
  • Fixed hiding messages
  • Fix moderation
  • Fix timestamp
  • UI suggestions
  • pinned mentions don't work

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@rapterjet2004 rapterjet2004 self-assigned this Nov 4, 2025
@rapterjet2004 rapterjet2004 added the 2. developing Work in progress label Nov 4, 2025
@rapterjet2004 rapterjet2004 marked this pull request as ready for review November 17, 2025 16:15
@rapterjet2004 rapterjet2004 force-pushed the issue-5534-message-pinning branch from 32d678e to 9a043b0 Compare November 19, 2025 13:36
@rapterjet2004 rapterjet2004 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 21, 2025
@mahibi mahibi added this to the 23.0.0 milestone Nov 27, 2025
@mahibi
Copy link
Collaborator

mahibi commented Nov 27, 2025

@rapterjet2004 as there is a chance that checks succeed now, can you rebase? Might be there will some merge conflicts..

Copy link
Collaborator

@mahibi mahibi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just rejecting for now to not merge before a potential v22.1.0 branchoff...

@rapterjet2004 rapterjet2004 force-pushed the issue-5534-message-pinning branch from 27d4daa to 0a1c0e8 Compare December 1, 2025 14:40
@rapterjet2004 rapterjet2004 requested a review from mahibi December 2, 2025 14:42
Copy link
Collaborator

@mahibi mahibi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Showing the details (the "Pinned until..." bubble) should be changed in my opinion.

  • It has the same bubble color as the own message have. It's a bit confusing in my opinion.

  • It does not need to be shown permanently.

  • The bubble doesn't seem to catch tap events. When clicking on it, the underlying chat view is clicked (Noticed it when collapse/uncollapse was triggered in background)

  • I think the buttons to hide and unpin are very tiny

  • I would expect a menu when long clicking the pinned message (see iOS implementation: nextcloud/talk-ios#2262)

  • Go to message is not implemented? The chat should scroll the the message when the pinned message is clicked.

  • Pinned messages should be added as a new type to "shared items"

  • In 1:1 conversations only possible to pin own message. But i can unpin a message from other participant. Please align how the behavior should be in 1:1 chats with other clients

  • If not being a moderator i see pinned messages and the "hide" button, but i can not hide. Please align with other clients

  • Somehow i got "Error in pinMessage: retrofit2.HttpException: HTTP 403"
    but i can't reproduce...
    I think i was not a moderator but saw the pin message option somehow.

Copy link
Contributor

@sowjanyakch sowjanyakch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The messages from the moderators cannot be pinned. I would expect to pin the messages from the moderators also.
  • When a message is pinned, I see two buttons hide and unpin - the UI is little confusing and clicking on both hide and unpin buttons shows the same system message "You unpinned a message". Looks like hide button is also performing unpin action.
  • Pinned until .... is showing wrong time. Pin a message and set custom time pin until 6:00 PM and see the message and it shows wrong time.

@mahibi mahibi modified the milestones: 22.1.0, 23.0.0 Dec 18, 2025
- ChatMessage now has ChatMessageMetaData
- Conversation now has updated fields from server
- Added PinnedMessageOptionsDialog
- API, viewmodel, class functions

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
@rapterjet2004 rapterjet2004 force-pushed the issue-5534-message-pinning branch from 0a1c0e8 to 93ae440 Compare December 22, 2025 20:15
…ared items view

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5535.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings99100
Errors00

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1010
Dodgy code5454
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total8181

Lint increased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Message Pinning 📌

4 participants