Remove message text selection hack

This commit is contained in:
miruka
2020-03-24 11:26:17 -04:00
parent f148837fae
commit 710dba09ec
6 changed files with 174 additions and 366 deletions

View File

@@ -109,8 +109,6 @@ HRowLayout {
HSelectableLabel {
id: contentLabel
container: selectableLabelContainer
index: model.index
visible: ! pureMedia
topPadding: theme.chat.message.verticalSpacing
@@ -158,13 +156,11 @@ HRowLayout {
function selectAllText() {
// Select the message body without the date or name
container.clearSelection()
contentLabel.select(
0,
contentLabel.length -
timeText.length - 1 // - 1: separating space
)
contentLabel.updateContainerSelectedTexts()
}
HoverHandler { id: contentHover }