mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-04 04:08:16 +00:00
perf: 优化消息保存覆盖
This commit is contained in:
parent
4824f30950
commit
cf7f245a49
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -2872,7 +2872,7 @@ export default {
|
|||||||
const dialog = state.cacheDialogs.find(({id}) => id == data.dialog_id);
|
const dialog = state.cacheDialogs.find(({id}) => id == data.dialog_id);
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
let isUpdate = false
|
let isUpdate = false
|
||||||
if (!data.read_at) {
|
if (!data.read_at && data.userid != state.userId) {
|
||||||
if (dialog.unread_one) {
|
if (dialog.unread_one) {
|
||||||
dialog.unread_one = Math.min(dialog.unread_one, data.id)
|
dialog.unread_one = Math.min(dialog.unread_one, data.id)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user