feat: log only out of sync updated_at
This commit is contained in:
@@ -216,7 +216,7 @@ export const mutations = {
|
||||
const selectedConversation = allConversations[index];
|
||||
|
||||
// ignore out of order events
|
||||
if (conversation.updated_at <= selectedConversation.updated_at) {
|
||||
if (conversation.updated_at < selectedConversation.updated_at) {
|
||||
Sentry.withScope(scope => {
|
||||
scope.setContext('incoming', conversation);
|
||||
scope.setContext('stored', selectedConversation);
|
||||
@@ -226,6 +226,10 @@ export const mutations = {
|
||||
return;
|
||||
}
|
||||
|
||||
if (conversation.updated_at === selectedConversation.updated_at) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { messages, ...updates } = conversation;
|
||||
allConversations[index] = { ...selectedConversation, ...updates };
|
||||
if (_state.selectedChatId === conversation.id) {
|
||||
|
||||
Reference in New Issue
Block a user