Skip to content

feat: forward message - #5110

Merged
reinaldonetof merged 26 commits into
developfrom
feat.foward-message
Aug 4, 2023
Merged

reinaldonetof merged 26 commits into
developfrom
feat.foward-message

Conversation

@reinaldonetof

@reinaldonetof reinaldonetof commented Jun 19, 2023 •

Copy link
Copy Markdown
Contributor

Proposed changes

Feature: Forwarding messages

Issue(s)

How to test or reproduce

Screenshots

Screen.Recording.2023-06-28.at.23.57.25.mov

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

TC-696

@reinaldonetof reinaldonetof self-assigned this Jun 19, 2023
@reinaldonetof
reinaldonetof marked this pull request as ready for review June 20, 2023 20:45
@ankar84

ankar84 commented Jun 21, 2023

Copy link
Copy Markdown
Contributor

Looks like forward message feature

Comment thread app/containers/MessageActions/index.tsx Resolved
Comment thread app/containers/MessageActions/index.tsx Resolved
Message_GroupingPeriod?: number;
isReadReceiptEnabled?: boolean;
isThreadRoom: boolean;
isThreadRoom?: boolean;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Better to make it default false instead of creating 3 possibilities.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to set the false at the static defaultProps, but it didn't work! I researched how to do it with classes and didn't find a solution. Do you know how to do it?

Comment thread app/definitions/rest/v1/chat.ts Resolved
Comment thread app/i18n/locales/pt-BR.json Resolved
Comment thread app/views/ShareMessageView/index.tsx Outdated
serverVersion={serverVersion}
/>
<View pointerEvents='none'>
<Message

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing real name.
Make sure to check for other missing props.

Also, there's an extra padding. Check Figma.

Comment thread app/views/ShareMessageView/index.tsx Resolved
Comment thread app/views/ShareMessageView/index.tsx Outdated
state => ({
user: getUserSelector(state),
server: state.server.server,
blockUnauthenticatedAccess: !!state.settings.Accounts_AvatarBlockUnauthenticatedAccess ?? true,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you sure you need !!?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

make TS happy and keep only the boolean, not the TSettingValue

Comment thread app/views/ShareMessageView/index.tsx Outdated
setSending(true);
const permalink = await getPermalinkMessage(message);
const msg = `[ ](${permalink})\n`;
await Promise.all(roomsId.map(roomId => postMessage(roomId, msg)));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This comment gives me the impression this loop isn't really needed, but I see the frontend is doing the same thing 🙈 https://github.com/RocketChat/Rocket.Chat/blob/67a299b3546d702620c17b72cb81e31981b96de5/apps/meteor/app/api/server/v1/chat.ts#L206

Comment thread app/views/ShareMessageView/index.tsx Resolved
@reinaldonetof reinaldonetof changed the title feat: share message feat: forward message Jun 27, 2023
Comment thread app/containers/message/Preview.tsx Resolved
Comment thread app/containers/message/Preview.tsx Resolved
Comment thread app/views/ForwardMessageView/index.tsx Resolved
Comment thread app/views/ForwardMessageView/index.tsx Resolved
Comment thread app/views/ForwardMessageView/index.tsx Resolved
@reinaldonetof
reinaldonetof merged commit 278ed91 into develop Aug 4, 2023
@reinaldonetof
reinaldonetof deleted the feat.foward-message branch August 4, 2023 14:09
@Rohit3523 Rohit3523 mentioned this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants