mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-01 19:59:24 +00:00
Reset unread messages when going to bottom after 5s
This commit is contained in:
parent
cf19039a22
commit
01437a787d
2 changed files with 11 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ public:
|
|||
void sendFileMessage (const QString &path);
|
||||
Q_INVOKABLE void forwardMessage(ChatMessageModel * model);
|
||||
void compose ();
|
||||
void resetMessageCount ();
|
||||
Q_INVOKABLE void resetMessageCount ();
|
||||
Q_INVOKABLE void initEntries();
|
||||
Q_INVOKABLE int loadMoreEntries(); // return new entries count
|
||||
void callEnded(std::shared_ptr<linphone::Call> call);
|
||||
|
|
|
|||
|
|
@ -52,6 +52,16 @@ Rectangle {
|
|||
if( loadingEntries && !displaying)
|
||||
displaying = true
|
||||
}
|
||||
onBindToEndChanged: if( bindToEnd){
|
||||
markAsReadTimer.start()
|
||||
}
|
||||
Timer{
|
||||
id: markAsReadTimer
|
||||
interval: 5000
|
||||
repeat: false
|
||||
running: false
|
||||
onTriggered: container.proxyModel.chatRoomModel.resetMessageCount()
|
||||
}
|
||||
//property var sipAddressObserver: SipAddressesModel.getSipAddressObserver(proxyModel.fullPeerAddress, proxyModel.fullLocalAddress)
|
||||
// -----------------------------------------------------------------------
|
||||
Layout.fillHeight: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue