Fix image delegate color && fix lastEvent.
This commit is contained in:
@@ -12,7 +12,7 @@ AvatarContainer {
|
||||
width: messageImage.width + 24
|
||||
height: messageImage.height + 24
|
||||
|
||||
color: sentByMe ? background : Material.accent
|
||||
color: sentByMe ? background : Material.primary
|
||||
|
||||
DownloadableContent {
|
||||
id: downloadable
|
||||
|
||||
@@ -166,7 +166,7 @@ Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
text: (lastEvent || topic).replace(/(\r\n\t|\n|\r\t)/gm,"");
|
||||
text: (lastEvent == "" ? topic : lastEvent).replace(/(\r\n\t|\n|\r\t)/gm,"");
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.NoWrap
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user