Skip to content

feat: Ability to lock the conversation to a single thread in API channels#10329

Merged
sojan-official merged 3 commits intochatwoot:developfrom
giquieu:chore/7726-allow-option-to-lock-the-conversation-to-single-thread-api
Dec 9, 2024
Merged

feat: Ability to lock the conversation to a single thread in API channels#10329
sojan-official merged 3 commits intochatwoot:developfrom
giquieu:chore/7726-allow-option-to-lock-the-conversation-to-single-thread-api

Conversation

@giquieu
Copy link
Contributor

@giquieu giquieu commented Oct 21, 2024

Pull Request Template

Description

Added the possibility to mark as a single conversation in the API type inbox. This allows the conversation builder to search for the last conversation.
I thought about searching for the last conversation with created_at: desc order, as is done in some channels... but I didn't change the way the conversation is searched.

Fixes # (issue)
#7726

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Added test case in conversation_builder_spec;

I started a new conversation via API, sent some messages and ended it.
I started another conversation in the same channel, and verified that the conversation remained the same.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@github-actions
Copy link

🐢 Turtley slow progress alert! This pull request has been idle for over 30 days. Can we please speed things up and either merge it or release it back into the wild?

@github-actions github-actions bot added the stale label Nov 30, 2024
@BrOrlandi
Copy link

I think the implementation is really simple, as the lock is already possible in other kinds of inboxes. I hope this feature is merged soon!

@github-actions github-actions bot removed the stale label Dec 4, 2024
@eliezerazevedo
Copy link

I am hoping that this PR will be merged soon.

@sojan-official
Copy link
Member

@giquieu Appologies on the delay on this one. We are currently testing this and will have this merged. Thanks a lot for the help !

Copy link
Member

@sojan-official sojan-official left a comment

Choose a reason for hiding this comment

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

  • verified to be working

@sojan-official sojan-official changed the title chore: allow an option to lock the conversation to a single thread in API channels feat: Ability to lock the conversation to a single thread in API channels Dec 9, 2024
@sojan-official sojan-official merged commit 472f6d9 into chatwoot:develop Dec 9, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants