Fix default conversation color to use state

This commit is contained in:
ayumi-signal 2023-09-01 10:03:44 -07:00 committed by GitHub
parent f3eee779a0
commit cf28e2dc2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 57 additions and 16 deletions

View file

@ -19,6 +19,7 @@ import {
getUserACI,
getUserPNI,
} from './user';
import { getDefaultConversationColor } from './items';
import { getActiveCall, getCallSelector } from './calling';
import { getPropsForBubble } from './message';
import { getCallHistorySelector } from './callHistory';
@ -51,6 +52,7 @@ export const getTimelineItem = (
const accountSelector = getAccountSelector(state);
const contactNameColorSelector = getContactNameColorSelector(state);
const selectedMessageIds = getSelectedMessageIds(state);
const defaultConversationColor = getDefaultConversationColor(state);
return getPropsForBubble(message, {
conversationSelector,
@ -67,5 +69,6 @@ export const getTimelineItem = (
activeCall,
accountSelector,
selectedMessageIds,
defaultConversationColor,
});
};