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

[Feature Request] Copy action Add sender information #356

Open
eric-gitta-moore opened this issue Oct 15, 2024 · 1 comment
Open

[Feature Request] Copy action Add sender information #356

eric-gitta-moore opened this issue Oct 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@eric-gitta-moore
Copy link

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Features similar to the desktop version

  • Desktop
sender name, [9/27/2024 11:00 AM]
I'm send a msg.
  • web K
I'm send a msg.

Is there any way to add the time as well, especially if you can customize the copy header.

I go through breakpoints and searches and find that the relevant logic is located at

private async getSelectedMessagesText() {

But I still can't find how to get the nickname through fromId or peerId

@eric-gitta-moore eric-gitta-moore added the enhancement New feature or request label Oct 15, 2024
@eric-gitta-moore
Copy link
Author

eric-gitta-moore commented Oct 15, 2024

Ok, I got.

this.managers.appPeersManager.getPeerUsername('userId or peerId')
this.managers.appPeersManager.getPeer('userId or peerId')

I found this through the debug avatar render produce

const peer = props.peer ?? apiManagerProxy.getPeer(peerId);

And then I go back to src/components/chat/contextMenu.ts and I find the same call

((await this.managers.appPeersManager.getPeer(this.peerId)) as MTChat.chat).participants_count :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant