Re-enable reaction notifications and improve message modifier typing

This commit is contained in:
Scott Nonnenberg 2022-01-04 07:27:16 -08:00 committed by GitHub
parent 14861aff50
commit 54e252ecc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 120 additions and 40 deletions

View file

@ -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;

View file

@ -32,7 +32,7 @@ export enum MessageReceiptType {
View = 'View',
}
type MessageReceiptAttributesType = {
export type MessageReceiptAttributesType = {
messageSentAt: number;
receiptTimestamp: number;
sourceUuid: UUIDStringType;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;