From 1458024ea54583b63f8c42b71eb3920a0a901a9a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 4 Sep 2024 10:49:06 +0800 Subject: [PATCH] :art: Improve clear workspace history msg pushing https://github.com/siyuan-note/siyuan/issues/12080 --- kernel/api/history.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/api/history.go b/kernel/api/history.go index 6687144f7..220bbfec1 100644 --- a/kernel/api/history.go +++ b/kernel/api/history.go @@ -127,9 +127,7 @@ func clearWorkspaceHistory(c *gin.Context) { ret.Msg = err.Error() return } - util.PushClearMsg(msgId) - time.Sleep(500 * time.Millisecond) - util.PushMsg(model.Conf.Language(99), 1000*5) + util.PushUpdateMsg(msgId, model.Conf.Language(99), 1000*5) } func getDocHistoryContent(c *gin.Context) {