Skip to content

Conversation

@ohassine
Copy link
Member


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Support draft preview for multipart type message to be used in conversation list

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@sonarqubecloud
Copy link

@@ -0,0 +1,109 @@
-- This migration updates the ConversationDetailsWithEvents view to include a count of draft attachments.
DROP VIEW IF EXISTS ConversationDetailsWithEvents;

Copy link
Member

Choose a reason for hiding this comment

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

Why 123.sqm and 122.sqm? I see that ConversationDetailsWithEvents is being recreated in both migrations.

}

data class Draft(val message: String) : MessagePreviewContent
data class Draft(val message: String?, val attachmentType: String?, val attachmentsCount: Int) : MessagePreviewContent
Copy link
Member

Choose a reason for hiding this comment

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

What are the possible values of attachmentType? Maybe this could be more strongly typed? Something like an enum? Is it mimetype? What about when there are multiple attachments with different types?

import kotlin.test.assertEquals
import kotlin.test.assertIs

class LastMessageListTest: BaseDatabaseTest() {
Copy link
Member

Choose a reason for hiding this comment

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

Should this test suite be deleted?
I'd argue it would be nice to add tests to the new feature.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

This PR is stale because it has been open 30 days with no activity. Please update it or close it in case is not relevant anymore.

@github-actions github-actions bot added the stale label Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants