Working on #64.
It can now navigate to read marker only if the event is in timeline.
This commit is contained in:
parent
b8702166e9
commit
7ee13837b1
|
@ -43,10 +43,6 @@ Rectangle {
|
||||||
Layout.margins: 12
|
Layout.margins: 12
|
||||||
|
|
||||||
color: MSettings.darkTheme ? "#303030" : "#fafafa"
|
color: MSettings.darkTheme ? "#303030" : "#fafafa"
|
||||||
// layer.enabled: true
|
|
||||||
// layer.effect: ElevationEffect {
|
|
||||||
// elevation: searchField.focus ? 2 : 1
|
|
||||||
// }
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -39,6 +39,7 @@ RoomPanelForm {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goBottomFab.onClicked: goToEvent(currentRoom.readMarkerEventId)
|
||||||
goTopFab.onClicked: messageListView.positionViewAtBeginning()
|
goTopFab.onClicked: messageListView.positionViewAtBeginning()
|
||||||
|
|
||||||
function goToEvent(eventID) {
|
function goToEvent(eventID) {
|
||||||
|
|
|
@ -22,6 +22,7 @@ Item {
|
||||||
property alias roomHeader: roomHeader
|
property alias roomHeader: roomHeader
|
||||||
property alias messageListView: messageListView
|
property alias messageListView: messageListView
|
||||||
property alias goTopFab: goTopFab
|
property alias goTopFab: goTopFab
|
||||||
|
property alias goBottomFab: goBottomFab
|
||||||
property alias messageEventModel: messageEventModel
|
property alias messageEventModel: messageEventModel
|
||||||
property alias sortedMessageEventModel: sortedMessageEventModel
|
property alias sortedMessageEventModel: sortedMessageEventModel
|
||||||
property alias roomDrawer: roomDrawer
|
property alias roomDrawer: roomDrawer
|
||||||
|
@ -153,6 +154,26 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RoundButton {
|
||||||
|
width: 64
|
||||||
|
height: 64
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: parent.top
|
||||||
|
|
||||||
|
id: goBottomFab
|
||||||
|
|
||||||
|
visible: currentRoom && currentRoom.hasUnreadMessages
|
||||||
|
|
||||||
|
contentItem: MaterialIcon {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
icon: "\ue316"
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
|
||||||
|
Material.background: Material.accent
|
||||||
|
}
|
||||||
|
|
||||||
RoundButton {
|
RoundButton {
|
||||||
width: 64
|
width: 64
|
||||||
height: 64
|
height: 64
|
||||||
|
|
Loading…
Reference in New Issue