Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -76,7 +76,7 @@ export default function updateToSchemaVersion43(
|
|||
);
|
||||
|
||||
const upgradeConversation = (convo: ConversationType) => {
|
||||
const legacy = (convo as unknown) as LegacyConversationType;
|
||||
const legacy = convo as unknown as LegacyConversationType;
|
||||
let result = convo;
|
||||
|
||||
const logId = `(${legacy.id}) groupv2(${legacy.groupId})`;
|
||||
|
@ -117,11 +117,10 @@ export default function updateToSchemaVersion43(
|
|||
return updated;
|
||||
}
|
||||
|
||||
const addedByUserId:
|
||||
| UUIDStringType
|
||||
| undefined = getConversationUuid.get({
|
||||
conversationId: member.addedByUserId,
|
||||
});
|
||||
const addedByUserId: UUIDStringType | undefined =
|
||||
getConversationUuid.get({
|
||||
conversationId: member.addedByUserId,
|
||||
});
|
||||
|
||||
if (!addedByUserId) {
|
||||
return updated;
|
||||
|
@ -221,12 +220,8 @@ export default function updateToSchemaVersion43(
|
|||
};
|
||||
|
||||
const upgradeMessage = (message: MessageType): boolean => {
|
||||
const {
|
||||
id,
|
||||
groupV2Change,
|
||||
sourceUuid,
|
||||
invitedGV2Members,
|
||||
} = (message as unknown) as LegacyMessageType;
|
||||
const { id, groupV2Change, sourceUuid, invitedGV2Members } =
|
||||
message as unknown as LegacyMessageType;
|
||||
let result = message;
|
||||
|
||||
if (groupV2Change) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue