Show "unplayed" dot on outgoing audio messages
This commit is contained in:
parent
b73c029d5f
commit
14929fb408
16 changed files with 219 additions and 60 deletions
|
@ -222,7 +222,7 @@ export class MessageEvent extends ConfirmableEvent {
|
|||
}
|
||||
}
|
||||
|
||||
export type ReadEventData = Readonly<{
|
||||
export type ReadOrViewEventData = Readonly<{
|
||||
timestamp: number;
|
||||
envelopeTimestamp: number;
|
||||
source?: string;
|
||||
|
@ -231,11 +231,23 @@ export type ReadEventData = Readonly<{
|
|||
}>;
|
||||
|
||||
export class ReadEvent extends ConfirmableEvent {
|
||||
constructor(public readonly read: ReadEventData, confirm: ConfirmCallback) {
|
||||
constructor(
|
||||
public readonly receipt: ReadOrViewEventData,
|
||||
confirm: ConfirmCallback
|
||||
) {
|
||||
super('read', confirm);
|
||||
}
|
||||
}
|
||||
|
||||
export class ViewEvent extends ConfirmableEvent {
|
||||
constructor(
|
||||
public readonly receipt: ReadOrViewEventData,
|
||||
confirm: ConfirmCallback
|
||||
) {
|
||||
super('view', confirm);
|
||||
}
|
||||
}
|
||||
|
||||
export class ConfigurationEvent extends ConfirmableEvent {
|
||||
constructor(
|
||||
public readonly configuration: Proto.SyncMessage.IConfiguration,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue