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

Copying a message that contains only a link will also copy the html tags. #27

Closed
StuntsPT opened this issue Oct 9, 2015 · 10 comments
Closed
Labels
Milestone

Comments

@StuntsPT
Copy link

StuntsPT commented Oct 9, 2015

Which kind of defeats the purpose of being able to copy&paste a link to the browser.
Tapping on the link also does not call the browser, but that's for another issue.

@timsueberkrueb
Copy link
Owner

@StuntsPT thanks for reporting!

@timsueberkrueb timsueberkrueb added this to the v0.3 milestone Oct 9, 2015
@StuntsPT
Copy link
Author

StuntsPT commented Oct 9, 2015

I'd look into it myself, but I've been a lot busier than what I had anticipated... and I still have #5 on my list...

@timsueberkrueb
Copy link
Owner

fixed :)

@StuntsPT
Copy link
Author

Thanks!
Which commit, btw? I might as well start getting familiar with the code base.

@timsueberkrueb
Copy link
Owner

@StuntsPT it's not online yet since I'm not finished with the convergence modifications. Will push both soon to the feature-25 branch.

@StuntsPT
Copy link
Author

Cool! Thanks for the heads up.

@timsueberkrueb
Copy link
Owner

@StuntsPT
Copy link
Author

Woha! Commit 9a5ff62 is huge!
May I suggest (and I know this is a lot about personal preference) that you make more, but smaller commits? It makes tracking changes a lot easier!
That being said - was it line 20 on ui/ChatListItem.qml ?
Thanks!

@timsueberkrueb
Copy link
Owner

@StuntsPT yeah, you're absolutely right, it's better and easier to follow. Will try to adapt a better committing style :)

The important changes regarding this issue are:

// https://github.com/tim-sueberkrueb/ubuntu-hangups/blob/feature-25/ui/ChatListItem.qml#L201
MimeData {
       id: textMimeData
       color: "green"
       text: modelData.text // -> no-html text
}

The model now holds a html and plain-text version of the message. The html is displayed while the plain text version gets send to the clipboard when the copy action is triggered.

Relevant backend code:

@StuntsPT
Copy link
Author

Thanks! That clears it up.

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

No branches or pull requests

2 participants