Ensure that seenStatus is always updated along with readStatus
This commit is contained in:
parent
925b89b3a9
commit
e078a2ae54
7 changed files with 53 additions and 10 deletions
|
@ -21,6 +21,7 @@ import type { UUIDStringType } from '../types/UUID';
|
|||
import type { BadgeType } from '../badges/types';
|
||||
import type { RemoveAllConfiguration } from '../types/RemoveAllConfiguration';
|
||||
import type { LoggerType } from '../types/Logging';
|
||||
import type { ReadStatus } from '../messages/MessageReadStatus';
|
||||
|
||||
export type AttachmentDownloadJobTypeType =
|
||||
| 'long-message'
|
||||
|
@ -397,7 +398,16 @@ export type DataInterface = {
|
|||
storyId?: UUIDStringType;
|
||||
}) => Promise<
|
||||
Array<
|
||||
Pick<MessageType, 'id' | 'source' | 'sourceUuid' | 'sent_at' | 'type'>
|
||||
{ originalReadStatus: ReadStatus | undefined } & Pick<
|
||||
MessageType,
|
||||
| 'id'
|
||||
| 'readStatus'
|
||||
| 'seenStatus'
|
||||
| 'sent_at'
|
||||
| 'source'
|
||||
| 'sourceUuid'
|
||||
| 'type'
|
||||
>
|
||||
>
|
||||
>;
|
||||
getUnreadReactionsAndMarkRead: (options: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue