Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MM 45015 - auto follow threads #7463

Merged
merged 7 commits into from
Nov 14, 2023

Conversation

tanmaythole
Copy link
Contributor

@tanmaythole tanmaythole commented Jul 21, 2023

Summary

Added auto follow thread select option

Ticket Link

Fixes mattermost/mattermost#22386
https://mattermost.atlassian.net/browse/MM-45015

Checklist

  • Added or updated unit tests (required for all new features)
  • Has UI changes
  • Includes text changes and localization file updates
  • Have tested against the 5 core themes to ensure consistency between them.

Device Information

This PR was tested on: Samsung M11 - 12 version

Screenshots

Release Note

Added a new select option to auto-follow all threads in the Channel's Info.

@mattermost-build
Copy link
Contributor

Hello @tanmaythole,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@tanmaythole tanmaythole changed the title Mm 45015/auto follow MM 45015 - auto follow threads Jul 21, 2023
@larkox larkox requested review from larkox and enahum July 26, 2023 12:48
@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@larkox
Copy link
Contributor

larkox commented Aug 7, 2023

@tanmaythole Are you still working on this? Could you address the comments?

@tanmaythole
Copy link
Contributor Author

@tanmaythole Are you still working on this? Could you address the comments?

Yes, give me some time. I will commit changes as soon as possible.

@tanmaythole tanmaythole requested a review from enahum August 15, 2023 16:45
}: Props) => {
const isDMorGM = isTypeDMorGM(type);

return (
<>
{type !== General.DM_CHANNEL &&
{isCRTEnabled && (
<AutoFollowThreads channelId={channelId}/>
Copy link
Contributor

Choose a reason for hiding this comment

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

does this also apply to DM's ?


const toggleFollow = preventDoubleTap(() => {
const props: Partial<ChannelNotifyProps> = {
channel_auto_follow_threads: followedStatus ? 'off' : 'on',
Copy link
Contributor

Choose a reason for hiding this comment

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

you should be using the constants declared in the constants/channel file

channel_auto_follow_threads: followedStatus ? 'off' : 'on',
};
setAutoFollow(!autoFollow);
updateChannelNotifyProps(serverUrl, channelId, props);
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if this fails? I know is the same with other options, just want to see what would be the consequence and if we should also thing about this for the other options as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay need to add checks for this and other option as well

Copy link
Contributor

@enahum enahum left a comment

Choose a reason for hiding this comment

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

I think you need to run i18n-extract as is missing the en.json file

@larkox larkox added 2: Dev Review Requires review by a core commiter and removed Lifecycle/1:stale labels Aug 16, 2023
Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

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

No extra comments from my side.

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@cwarnermm cwarnermm added the Docs/Needed Requires documentation label Sep 6, 2023
@tanmaythole tanmaythole requested a review from enahum September 18, 2023 11:17
@enahum enahum removed the 2: Dev Review Requires review by a core commiter label Sep 26, 2023
@enahum enahum requested a review from lindy65 September 26, 2023 08:00
@enahum enahum added the 3: QA Review Requires review by a QA tester label Sep 26, 2023
@lindy65 lindy65 added the Build Apps for PR Build the mobile app for iOS and Android to test label Sep 26, 2023
@mattermost-build mattermost-build removed the Build Apps for PR Build the mobile app for iOS and Android to test label Sep 26, 2023
@mattermost-build
Copy link
Contributor

Building app in separate branch.

@lindy65 lindy65 added the Build Apps for PR Build the mobile app for iOS and Android to test label Oct 9, 2023
@mattermost-build
Copy link
Contributor

Building app in separate branch.

@mattermost-build mattermost-build removed the Build Apps for PR Build the mobile app for iOS and Android to test label Oct 9, 2023
@lindy65
Copy link

lindy65 commented Oct 9, 2023

/update-branch

Copy link

@lindy65 lindy65 left a comment

Choose a reason for hiding this comment

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

Thanks @tanmaythole

I'm going to qa-defer this PR as I'm having trouble accessing master.test.mattermost.com from mobile. I will test post merge.

cc// @johndavidlugtu @enahum

@lindy65 lindy65 added QA Deferred Agreement with QA that these changes will be tested post-merge 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Oct 9, 2023
@hanzei
Copy link

hanzei commented Nov 14, 2023

@larkox @enahum Can we merge this PR?

@larkox larkox merged commit 805c794 into mattermost:main Nov 14, 2023
1 check passed
@amyblais amyblais added this to the v2.12.0 milestone Nov 14, 2023
@tanmaythole tanmaythole deleted the MM-45015/auto-follow branch November 23, 2023 12:03
@cwarnermm cwarnermm added Docs/Done Required documentation has been written and removed Docs/Needed Requires documentation labels Dec 18, 2023
fewva pushed a commit to fewva/mattermost-mobile that referenced this pull request Jan 12, 2024
* auto follow select option added

* unused code removed

* auto follow threads condition fixed on CRT enabled

* error handles

---------

Co-authored-by: Mattermost Build <[email protected]>
cyrusjc pushed a commit to cyrusjc/mattermost-mobile that referenced this pull request May 18, 2024
* auto follow select option added

* unused code removed

* auto follow threads condition fixed on CRT enabled

* error handles

---------

Co-authored-by: Mattermost Build <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Contributor Docs/Done Required documentation has been written QA Deferred Agreement with QA that these changes will be tested post-merge release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RNv2: CRT channel notification setting to auto-follow all threads in channel
9 participants