Skip to content

Commit

Permalink
为什么捏
Browse files Browse the repository at this point in the history
💩 修正通知面板显示异常的问题 <- #194
  • Loading branch information
Stapxs committed Feb 17, 2025
1 parent 636fbe3 commit 85aeb88
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/renderer/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,6 @@ export default defineComponent({
'getGroupMemberList',
)
}
// 刷新系统消息
Connector.send('get_system_msg', {}, 'getSystemMsg')
// 清理通知
if (runtimeData.plantform.reader) {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/assets/l10n/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ msgstr ""
msgid "确定要退出群聊吗?"
msgstr ""

msgid "留言"
msgid "留言"
msgstr ""

msgid "请求加为好友"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/assets/l10n/zh-TW.po
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ msgstr ""
msgid "确定要退出群聊吗?"
msgstr ""

msgid "留言"
msgid "留言"
msgstr ""

msgid "请求加为好友"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/assets/l10n/zh-YUE.po
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ msgstr ""
msgid "确定要退出群聊吗?"
msgstr ""

msgid "留言"
msgid "留言"
msgstr ""

msgid "请求加为好友"
Expand Down
7 changes: 0 additions & 7 deletions src/renderer/src/function/msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -907,13 +907,6 @@ const msgFunctons = {
}
},

/**
* 保存系统消息
*/
getSystemMsg: (_: string, msg: { [key: string]: any }) => {
runtimeData.systemNoticesList = msg.data
},

/**
* 获取发送的消息(消息发送后处理)
* @deprecated 功能已被遗弃,暂时保留方法
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/src/function/utils/appUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ export function reloadUsers() {
}
Connector.send(friendName, {}, 'getFriendList')
Connector.send(groupName, {}, 'getGroupList')
// 获取系统消息
Connector.send('get_system_msg', {}, 'getSystemMsg')
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/pages/chat-view/SystemNotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
minute: 'numeric',
}).format(new Date(notice.time * 1000))
}}</a>
<a>{{ $t('留言') + notice.comment }}</a>
<a>{{ $t('留言') + notice.comment }}</a>
</div>
</div>
<div>
Expand Down Expand Up @@ -82,7 +82,7 @@
minute: 'numeric',
}).format(new Date(notice.time * 1000))
}}</a>
<a>{{ $t('留言') + notice.comment }}</a>
<a>{{ $t('留言') + notice.comment }}</a>
</div>
</div>
<div>
Expand Down

0 comments on commit 85aeb88

Please sign in to comment.