fix: protocol presence syncing
This commit is contained in:
parent
a24f8b7153
commit
06d24c21a2
2 changed files with 16 additions and 3 deletions
|
@ -22,8 +22,12 @@ export const useProtocolPresenceStore = defineStore("protocolPresence", {
|
|||
getters: {
|
||||
detectedChangeProtocolPresence: (state) =>
|
||||
!isEqual(
|
||||
state.origin, //.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId),
|
||||
state.presence //.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) => a.memberId - b.memberId)
|
||||
state.origin.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) =>
|
||||
a.memberId.localeCompare(b.memberId)
|
||||
),
|
||||
state.presence.sort((a: ProtocolPresenceViewModel, b: ProtocolPresenceViewModel) =>
|
||||
a.memberId.localeCompare(b.memberId)
|
||||
)
|
||||
) && state.syncingProtocolPresence != "syncing",
|
||||
},
|
||||
actions: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue