Re-enable reaction notifications and improve message modifier typing
This commit is contained in:
parent
14861aff50
commit
54e252ecc2
7 changed files with 120 additions and 40 deletions
|
@ -8,7 +8,7 @@ import type { MessageModel } from '../models/messages';
|
|||
import { getContactId } from '../messages/helpers';
|
||||
import * as log from '../logging/log';
|
||||
|
||||
type DeleteAttributesType = {
|
||||
export type DeleteAttributesType = {
|
||||
targetSentTimestamp: number;
|
||||
serverTimestamp: number;
|
||||
fromId: string;
|
||||
|
|
|
@ -32,7 +32,7 @@ export enum MessageReceiptType {
|
|||
View = 'View',
|
||||
}
|
||||
|
||||
type MessageReceiptAttributesType = {
|
||||
export type MessageReceiptAttributesType = {
|
||||
messageSentAt: number;
|
||||
receiptTimestamp: number;
|
||||
sourceUuid: UUIDStringType;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Collection, Model } from 'backbone';
|
|||
import type { ConversationModel } from '../models/conversations';
|
||||
import * as log from '../logging/log';
|
||||
|
||||
type MessageRequestAttributesType = {
|
||||
export type MessageRequestAttributesType = {
|
||||
threadE164?: string;
|
||||
threadUuid?: string;
|
||||
groupId?: string;
|
||||
|
|
|
@ -11,9 +11,9 @@ import { isMessageUnread } from '../util/isMessageUnread';
|
|||
import { notificationService } from '../services/notifications';
|
||||
import * as log from '../logging/log';
|
||||
|
||||
type ReadSyncAttributesType = {
|
||||
export type ReadSyncAttributesType = {
|
||||
senderId: string;
|
||||
sender: string;
|
||||
sender?: string;
|
||||
senderUuid: string;
|
||||
timestamp: number;
|
||||
readAt: number;
|
||||
|
|
|
@ -7,7 +7,7 @@ import { Collection, Model } from 'backbone';
|
|||
import type { MessageModel } from '../models/messages';
|
||||
import * as log from '../logging/log';
|
||||
|
||||
type ViewOnceOpenSyncAttributesType = {
|
||||
export type ViewOnceOpenSyncAttributesType = {
|
||||
source?: string;
|
||||
sourceUuid: string;
|
||||
timestamp: number;
|
||||
|
|
|
@ -12,9 +12,9 @@ import { isIncoming } from '../state/selectors/message';
|
|||
import { notificationService } from '../services/notifications';
|
||||
import * as log from '../logging/log';
|
||||
|
||||
type ViewSyncAttributesType = {
|
||||
export type ViewSyncAttributesType = {
|
||||
senderId: string;
|
||||
senderE164: string;
|
||||
senderE164?: string;
|
||||
senderUuid: string;
|
||||
timestamp: number;
|
||||
viewedAt: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue