Set room as read when focusing it by ctrl+tab
This commit is contained in:
parent
008d4e6670
commit
4546a2f88c
1
TODO.md
1
TODO.md
|
@ -1,6 +1,5 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- set open_room correctly when using other ways to change rooms than clicking
|
|
||||||
- merge AccountBar account and RoomList account delegates code
|
- merge AccountBar account and RoomList account delegates code
|
||||||
|
|
||||||
- fix python getting stuck when loading large room
|
- fix python getting stuck when loading large room
|
||||||
|
|
|
@ -50,6 +50,9 @@ HLoader {
|
||||||
if (history.length > historyLength) history.pop()
|
if (history.length > historyLength) history.pop()
|
||||||
|
|
||||||
pageLoader.setSource(componentUrl, properties)
|
pageLoader.setSource(componentUrl, properties)
|
||||||
|
|
||||||
|
if (componentUrl === "Pages/Chat/Chat.qml" && properties.roomId)
|
||||||
|
py.callCoro("room_read", [properties.roomId])
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPage(name, properties={}) {
|
function showPage(name, properties={}) {
|
||||||
|
@ -64,8 +67,6 @@ HLoader {
|
||||||
function showRoom(userId, roomId) {
|
function showRoom(userId, roomId) {
|
||||||
_show("Pages/Chat/Chat.qml", {userId, roomId})
|
_show("Pages/Chat/Chat.qml", {userId, roomId})
|
||||||
|
|
||||||
py.callCoro("room_read", [roomId])
|
|
||||||
|
|
||||||
window.uiState.page = "Pages/Chat/Chat.qml"
|
window.uiState.page = "Pages/Chat/Chat.qml"
|
||||||
window.uiState.pageProperties = {userId, roomId}
|
window.uiState.pageProperties = {userId, roomId}
|
||||||
window.uiStateChanged()
|
window.uiStateChanged()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user