Code cleanup && add minimum room management. #13

This commit is contained in:
Black Hat
2018-08-09 19:58:19 +08:00
parent b5328ec140
commit 587e298988
13 changed files with 145 additions and 200 deletions

View File

@@ -2,6 +2,8 @@ import QtQuick 2.9
import QtQuick.Controls 2.2
Row {
readonly property bool avatarVisible: !sentByMe && aboveAuthor !== author || section !== aboveSection
spacing: 6
ImageStatus {
@@ -10,7 +12,7 @@ Row {
width: height
height: 40
round: false
visible: !sentByMe && aboveAuthor !== author
visible: avatarVisible
source: author.avatarUrl != "" ? "image://mxc/" + author.avatarUrl : null
displayText: author.displayName
@@ -27,6 +29,6 @@ Row {
width: height
height: 40
color: "transparent"
visible: !sentByMe && aboveAuthor === author
visible: !avatarVisible
}
}