We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f774e82 commit 7418e4dCopy full SHA for 7418e4d
1 file changed
app/lib/methods/subscriptions/room.ts
@@ -265,10 +265,10 @@ export default class RoomSubscription {
265
message.attachments = message.attachments?.map(att => {
266
const existing = messageRecord.attachments?.find(
267
a =>
268
- a.image_url === att.image_url ||
269
- a.video_url === att.video_url ||
270
- a.audio_url === att.audio_url ||
271
- a.thumb_url === att.thumb_url
+ (a.image_url && a.image_url === att.image_url) ||
+ (a.video_url && a.video_url === att.video_url) ||
+ (a.audio_url && a.audio_url === att.audio_url) ||
+ (a.thumb_url && a.thumb_url === att.thumb_url)
272
);
273
274
return {
0 commit comments