Make most message attribute uses readonly
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
parent
c619a7b6fd
commit
3555ccc629
53 changed files with 342 additions and 258 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
import type { ConversationAttributesType } from '../model-types';
|
||||
import type { RecipientsByConversation } from '../state/ducks/stories';
|
||||
import type { ServiceIdString } from '../types/ServiceId';
|
||||
|
||||
import { getConversationMembers } from './getConversationMembers';
|
||||
import { isNotNil } from './isNotNil';
|
||||
|
@ -10,7 +11,12 @@ import { isNotNil } from './isNotNil';
|
|||
export function getRecipientsByConversation(
|
||||
conversations: Array<ConversationAttributesType>
|
||||
): RecipientsByConversation {
|
||||
const recipientsByConversation: RecipientsByConversation = {};
|
||||
const recipientsByConversation: Record<
|
||||
string,
|
||||
{
|
||||
serviceIds: Array<ServiceIdString>;
|
||||
}
|
||||
> = {};
|
||||
|
||||
conversations.forEach(attributes => {
|
||||
recipientsByConversation[attributes.id] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue