Cleanup: Reactions, Delete for Everyone
This commit is contained in:
parent
e8759fc81b
commit
29eaa7b9a2
4 changed files with 29 additions and 27 deletions
|
@ -610,16 +610,7 @@ export class ConversationController {
|
|||
const messages = await getMessagesBySentAt(targetTimestamp, {
|
||||
MessageCollection: window.Whisper.MessageCollection,
|
||||
});
|
||||
const targetMessage = messages.find(m => {
|
||||
const contact = m.getContact();
|
||||
|
||||
if (!contact) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const mcid = contact.get('id');
|
||||
return mcid === targetFromId;
|
||||
});
|
||||
const targetMessage = messages.find(m => m.getContactId() === targetFromId);
|
||||
|
||||
if (targetMessage) {
|
||||
return targetMessage.getConversation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue