mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 云端同步上传大量文件时不新增通知 https://github.com/siyuan-note/siyuan/issues/5112
This commit is contained in:
parent
fad08e85e6
commit
2dd16cac9a
2 changed files with 7 additions and 1 deletions
|
|
@ -127,6 +127,11 @@ func PushTxErr(msg string, code int, data interface{}) {
|
|||
BroadcastByType("main", "txerr", code, msg, data)
|
||||
}
|
||||
|
||||
func PushUpdateMsg(msgId string, msg string, timeout int) {
|
||||
BroadcastByType("main", "msg", 0, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout})
|
||||
return
|
||||
}
|
||||
|
||||
func PushMsg(msg string, timeout int) (msgId string) {
|
||||
msgId = gulu.Rand.String(7)
|
||||
BroadcastByType("main", "msg", 0, msg, map[string]interface{}{"id": msgId, "closeTimeout": timeout})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue