mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
limit rate notifications
This commit is contained in:
parent
e0852d2f73
commit
338566a7bb
@ -9,6 +9,13 @@ Item {
|
||||
id: root
|
||||
property var chatId: ""
|
||||
property var message: "hello"
|
||||
property var processClick : Backpressure.oneInTime(root, 1000, function(chatId, msg) {
|
||||
this.chatId = chatId
|
||||
this.message = msg
|
||||
notificationSound.play()
|
||||
var w1 = winInit.createObject(null)
|
||||
w1.destroy()
|
||||
});
|
||||
|
||||
Component {
|
||||
id: winInit
|
||||
@ -81,12 +88,9 @@ Item {
|
||||
}
|
||||
|
||||
function notifyUser(chatId, msg) {
|
||||
this.chatId = chatId
|
||||
this.message = msg
|
||||
notificationSound.play()
|
||||
var w1 = winInit.createObject(null)
|
||||
w1.destroy()
|
||||
}
|
||||
processClick(chatId, msg)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*##^##
|
||||
|
Loading…
x
Reference in New Issue
Block a user