Apply reactions optimistically

This commit is contained in:
Fedor Indutny
2021-05-13 12:10:20 -07:00
committed by Scott Nonnenberg
parent 18abe93022
commit 03eaa9eb3e
6 changed files with 54 additions and 33 deletions

21
ts/model-types.d.ts vendored
View File

@@ -109,15 +109,6 @@ export type MessageAttributesType = {
quote?: QuotedMessageType;
reactions?: Array<{
emoji: string;
from: {
id: string;
color?: string;
avatarPath?: string;
name?: string;
profileName?: string;
isMe?: boolean;
phoneNumber?: string;
};
fromId: string;
targetAuthorUuid: string;
targetTimestamp: number;
@@ -348,3 +339,15 @@ export declare class ConversationModelCollectionType extends Backbone.Collection
}
export declare class MessageModelCollectionType extends Backbone.Collection<MessageModel> {}
export type ReactionAttributesType = {
emoji: string;
remove?: boolean;
targetAuthorUuid: string;
targetTimestamp: number;
fromId?: string;
timestamp: number;
fromSync?: boolean;
};
export declare class ReactionModelType extends Backbone.Model<ReactionAttributesType> {}