Use ReadonlyArrays in conversation model and redux
This commit is contained in:
parent
ecbf84638d
commit
dec23725e5
55 changed files with 173 additions and 162 deletions
|
@ -8,7 +8,7 @@ import type { ConversationAttributesType } from '../model-types.d';
|
|||
|
||||
export function getAvatarData(
|
||||
conversationAttrs: Pick<ConversationAttributesType, 'avatars' | 'type'>
|
||||
): Array<AvatarDataType> {
|
||||
): ReadonlyArray<AvatarDataType> {
|
||||
const { avatars } = conversationAttrs;
|
||||
|
||||
if (avatars && avatars.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue