Delivery receipt support for edited messages
This commit is contained in:
parent
43e70720f7
commit
d093b1ab13
7 changed files with 143 additions and 22 deletions
|
@ -41,7 +41,7 @@ export async function onEdit(edit: EditAttributesType): Promise<void> {
|
|||
edits.add(edit);
|
||||
|
||||
try {
|
||||
// The conversation the deleted message was in; we have to find it in the database
|
||||
// The conversation the edited message was in; we have to find it in the database
|
||||
// to to figure that out.
|
||||
const targetConversation =
|
||||
await window.ConversationController.getConversationForTargetMessage(
|
||||
|
|
|
@ -62,9 +62,10 @@ export class ViewSyncs extends Collection {
|
|||
|
||||
async onSync(sync: ViewSyncModel): Promise<void> {
|
||||
try {
|
||||
const messages = await window.Signal.Data.getMessagesBySentAt(
|
||||
sync.get('timestamp')
|
||||
);
|
||||
const messages =
|
||||
await window.Signal.Data.getMessagesIncludingEditedBySentAt(
|
||||
sync.get('timestamp')
|
||||
);
|
||||
|
||||
const found = messages.find(item => {
|
||||
const sender = window.ConversationController.lookupOrCreate({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue