Changeset View
Changeset View
Standalone View
Standalone View
lib/shared/messages/update-relationship-message-spec.js
Show All 9 Lines | |||||
import { assertSingleMessageInfo } from './utils.js'; | import { assertSingleMessageInfo } from './utils.js'; | ||||
import type { PlatformDetails } from '../../types/device-types.js'; | import type { PlatformDetails } from '../../types/device-types.js'; | ||||
import { messageTypes } from '../../types/message-types-enum.js'; | import { messageTypes } from '../../types/message-types-enum.js'; | ||||
import type { | import type { | ||||
MessageInfo, | MessageInfo, | ||||
ClientDBMessageInfo, | ClientDBMessageInfo, | ||||
} from '../../types/message-types.js'; | } from '../../types/message-types.js'; | ||||
import type { RawUnsupportedMessageInfo } from '../../types/messages/unsupported.js'; | import type { RawUnsupportedMessageInfo } from '../../types/messages/unsupported.js'; | ||||
import type { | import { | ||||
RawUpdateRelationshipMessageInfo, | type RawUpdateRelationshipMessageInfo, | ||||
UpdateRelationshipMessageData, | type UpdateRelationshipMessageData, | ||||
UpdateRelationshipMessageInfo, | type UpdateRelationshipMessageInfo, | ||||
rawUpdateRelationshipMessageInfoValidator, | |||||
} from '../../types/messages/update-relationship.js'; | } from '../../types/messages/update-relationship.js'; | ||||
import type { NotifTexts } from '../../types/notif-types.js'; | import type { NotifTexts } from '../../types/notif-types.js'; | ||||
import type { ThreadInfo } from '../../types/thread-types.js'; | import type { ThreadInfo } from '../../types/thread-types.js'; | ||||
import type { RelativeUserInfo } from '../../types/user-types.js'; | import type { RelativeUserInfo } from '../../types/user-types.js'; | ||||
import { ET, type EntityText } from '../../utils/entity-text.js'; | import { ET, type EntityText } from '../../utils/entity-text.js'; | ||||
import { hasMinCodeVersion } from '../version-utils.js'; | import { hasMinCodeVersion } from '../version-utils.js'; | ||||
export const updateRelationshipMessageSpec: MessageSpec< | export const updateRelationshipMessageSpec: MessageSpec< | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | return { | ||||
merged, | merged, | ||||
body, | body, | ||||
title, | title, | ||||
prefix, | prefix, | ||||
}; | }; | ||||
}, | }, | ||||
generatesNotifs: async () => pushTypes.NOTIF, | generatesNotifs: async () => pushTypes.NOTIF, | ||||
validator: rawUpdateRelationshipMessageInfoValidator, | |||||
}); | }); |