kotatogram-desktop icon indicating copy to clipboard operation
kotatogram-desktop copied to clipboard

Support copying private links instead of public links

Open EricKotato opened this issue 4 years ago • 3 comments

This PR tracks progress for option to copy private link instead of public one.

Why bother?

  1. These links won't generate any previews (even if channel/supergroup has a public username).
  2. These links will work even if channel/group username will be changed, since IDs are static.

Current state

  • [x] Support to copy private links
  • [ ] Way to activate it

About how to activate it

For me, I think that best option here is to Shift/Ctrl+click on "Copy post link" option. But since I'm not seeing a way to make it with Ui::PopupMenu, here is some alternatives:

  • Adding a separate "Copy private link" option. It's visible, but menu will grow.
  • Kotatogram Settings option. Yes, settings menu will also grow, but that's inevitable. Much bigger problem here is that if you want to copy other link, you need to open settings menu.

So, most favorable option is Shift/Ctrl+click. Hope I don't need to hack Ui::PopupMenu for this.

EricKotato avatar May 16 '20 08:05 EricKotato

That's certainly would be a nice feature to be added :star_struck:

KlausEverWalkingDev avatar Jul 11 '20 01:07 KlausEverWalkingDev

So I've been thinking a bit to other approaches for activation of this feature and I do like this shift/ctrl+click approach, but I figured i would explore some more ideas: Artboard Two actions on single button Clicking the main, large area would copy public link, clicking icon on the side would copy the private link.

Artboard A submenu as a button "Copy Message Link" could serve both as hover for submenu but also as button, so technically we wouldn't have to go into submenu to copy the link, just hit "Copy Message Link" (which would do the same as Copy public link button in this example). Unfortunately this solution also means that people would have to figure it out by themselves by trying to click it.

dotvhs avatar Feb 25 '22 14:02 dotvhs

So I've been thinking a bit to other approaches for activation of this feature and I do like this shift/ctrl+click approach, but I figured i would explore some more ideas: Artboard Two actions on single button Clicking the main, large area would copy public link, clicking icon on the side would copy the private link.

Artboard A submenu as a button "Copy Message Link" could serve both as hover for submenu but also as button, so technically we wouldn't have to go into submenu to copy the link, just hit "Copy Message Link" (which would do the same as Copy public link button in this example). Unfortunately this solution also means that people would have to figure it out by themselves by trying to click it.

I could add that you could make a screen where those Telegram links' are pasted automatically. As Telegram doesn't have a "follow" feature, that screen would be a nice way to create a lists of all the chats you have known, even if you're not in there, maybe to be exported and/or to fill a list feature or something like that. Message links could be featured in a "Favorite Messages" (similar to what Graph Messenger does, but with only the links and not the whole forwarded message) screen and links with only the username or ID could be in a "Following" screen. Sorry if I didn't make my suggestion understandable. :sweat:

KlausEverWalkingDev avatar Feb 25 '22 15:02 KlausEverWalkingDev