3
3
<div class =" attach_title" >{{ l('im_attachments', 'wall', [], 1) }}</div >
4
4
5
5
<div class =" attach_forwarded attach_left_border" >
6
- <ForwardedMessage :msg =" fakeMsg" />
6
+ <ForwardedMessage :msg =" fakeMsg" >
7
+ <template v-if =" postReply " v-slot :afterContent >
8
+ <div class =" attach_forwarded attach_left_border" >
9
+ <ForwardedMessage :msg =" postReply" />
10
+ </div >
11
+ </template >
12
+ </ForwardedMessage >
7
13
8
14
<div class =" outline_button" @click =" openWall" >
9
15
{{ l('im_open_wall') }}
@@ -27,23 +33,29 @@ export default {
27
33
electron .shell .openItem (` https://vk.com/wall${ attach .to_id } _${ attach .id } ` );
28
34
}
29
35
36
+ function generateMessage (attach ) {
37
+ return {
38
+ from: attach .from_id ,
39
+ date: attach .date ,
40
+ text: attach .text .replace (/ \n / g , ' <br>' ),
41
+ attachments: parseAttachments (attach .attachments || []),
42
+ isContentDeleted: ! attach .text && ! attach .attachments && ! attach .copy_history
43
+ };
44
+ }
45
+
30
46
if (attach .geo ) {
31
47
(attach .attachments || (attach .attachments = [])).push ({
32
48
type: ' geo' ,
33
49
geo: attach .geo
34
50
});
35
51
}
36
52
53
+ const postReply = attach .copy_history && attach .copy_history [0 ];
54
+
37
55
return {
38
56
openWall,
39
-
40
- fakeMsg: {
41
- from: attach .from_id ,
42
- date: attach .date ,
43
- text: attach .text .replace (/ \n / g , ' <br>' ),
44
- attachments: parseAttachments (attach .attachments || []),
45
- isContentDeleted: ! attach .text && ! attach .attachments
46
- }
57
+ fakeMsg: generateMessage (attach),
58
+ postReply: postReply && generateMessage (postReply)
47
59
};
48
60
}
49
61
};
0 commit comments