Code cleanup && add minimum room management. #13
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user