@ -91,7 +91,7 @@ Page {
visible: messageContextMenu . eventType == MtxEvent . ImageMessage || messageContextMenu . eventType == MtxEvent . VideoMessage || messageContextMenu . eventType == MtxEvent . AudioMessage || messageContextMenu . eventType == MtxEvent . FileMessage || messageContextMenu . eventType == MtxEvent . Sticker
visible: messageContextMenu . eventType == MtxEvent . ImageMessage || messageContextMenu . eventType == MtxEvent . VideoMessage || messageContextMenu . eventType == MtxEvent . AudioMessage || messageContextMenu . eventType == MtxEvent . FileMessage || messageContextMenu . eventType == MtxEvent . Sticker
height: visible ? implicitHeight : 0
height: visible ? implicitHeight : 0
text: qsTr ( "Save as" )
text: qsTr ( "Save as" )
onTriggered: t imelineManager. timeline . saveMedia ( messageContextMenu . eventId )
onTriggered: T imelineManager. timeline . saveMedia ( messageContextMenu . eventId )
}
}
}
}
@ -104,7 +104,7 @@ Page {
DeviceVerification { }
DeviceVerification { }
}
}
Connections {
Connections {
target: t imelineManager
target: T imelineManager
onNewDeviceVerificationRequest: {
onNewDeviceVerificationRequest: {
flow . userId = userId ;
flow . userId = userId ;
flow . sender = false ;
flow . sender = false ;
@ -118,7 +118,7 @@ Page {
}
}
Label {
Label {
visible: ! t imelineManager. timeline && ! t imelineManager. isInitialSync
visible: ! T imelineManager. timeline && ! T imelineManager. isInitialSync
anchors.centerIn: parent
anchors.centerIn: parent
text: qsTr ( "No room open" )
text: qsTr ( "No room open" )
font.pointSize: 24
font.pointSize: 24
@ -128,7 +128,7 @@ Page {
BusyIndicator {
BusyIndicator {
visible: running
visible: running
anchors.centerIn: parent
anchors.centerIn: parent
running: t imelineManager. isInitialSync
running: T imelineManager. isInitialSync
height: 200
height: 200
width: 200
width: 200
z: 3
z: 3
@ -137,7 +137,7 @@ Page {
ListView {
ListView {
id: chat
id: chat
visible: ! ! t imelineManager. timeline
visible: T imelineManager. timeline != null
cacheBuffer: 400
cacheBuffer: 400
@ -149,7 +149,7 @@ Page {
anchors.leftMargin: 4
anchors.leftMargin: 4
anchors.rightMargin: scrollbar . width
anchors.rightMargin: scrollbar . width
model: t imelineManager. timeline
model: T imelineManager. timeline
boundsBehavior: Flickable . StopAtBounds
boundsBehavior: Flickable . StopAtBounds
@ -197,7 +197,7 @@ Page {
onCountChanged: if ( atYEnd ) model . currentIndex = 0 / / M a r k l a s t e v e n t a s r e a d , s i n c e w e a r e a t t h e b o t t o m
onCountChanged: if ( atYEnd ) model . currentIndex = 0 / / M a r k l a s t e v e n t a s r e a d , s i n c e w e a r e a t t h e b o t t o m
property int delegateMaxWidth: ( s ettings. timelineMaxWidth > 100 && ( parent . width - s ettings. timelineMaxWidth ) > 32 ) ? s ettings.timelineMaxWidth : ( parent . width - 32 )
property int delegateMaxWidth: ( S ettings. timelineMaxWidth > 100 && ( parent . width - S ettings. timelineMaxWidth ) > 32 ) ? S ettings.timelineMaxWidth : ( parent . width - 32 )
delegate: Rectangle {
delegate: Rectangle {
/ / T h i s w o u l d n o r m a l l y b e p r e v i o u s S e c t i o n , b u t o u r m o d e l ' s o r d e r i s i n v e r t e d .
/ / T h i s w o u l d n o r m a l l y b e p r e v i o u s S e c t i o n , b u t o u r m o d e l ' s o r d e r i s i n v e r t e d .
@ -303,7 +303,7 @@ Page {
Label {
Label {
id: userName
id: userName
text: chat . model . escapeEmoji ( modelData . userName )
text: chat . model . escapeEmoji ( modelData . userName )
color: t imelineManager. userColor ( modelData . userId , colors . window )
color: T imelineManager. userColor ( modelData . userId , colors . window )
textFormat: Text . RichText
textFormat: Text . RichText
MouseArea {
MouseArea {
@ -381,8 +381,13 @@ Page {
anchors.rightMargin: 20
anchors.rightMargin: 20
anchors.bottom: parent . bottom
anchors.bottom: parent . bottom
<< << << < HEAD
modelData: chat . model ? chat . model . getDump ( chat . model . reply , chat . model . id ) : { }
modelData: chat . model ? chat . model . getDump ( chat . model . reply , chat . model . id ) : { }
userColor: timelineManager . userColor ( modelData . userId , colors . window )
userColor: timelineManager . userColor ( modelData . userId , colors . window )
=== === =
modelData: chat . model ? chat . model . getDump ( chat . model . reply ) : { }
userColor: TimelineManager . userColor ( modelData . userId , colors . window )
>>> >>> > Fix presence indicator
}
}
ImageButton {
ImageButton {