Show "unplayed" dot on outgoing audio messages
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user