File tree 6 files changed +22
-20
lines changed
packages/TelegramClient-Core.package 6 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 20
20
],
21
21
#encoding : 'TXT'
22
22
},
23
- SquotImageMapper {
24
- #path : FSAbsolutePath [
25
- 'assets',
26
- 'default-video-thumbnail.png'
27
- ],
28
- #encoding : Class [ #PNGReadWriter ]
29
- },
30
23
SquotPlaintextMapper {
31
24
#path : FSAbsolutePath [
32
25
'.gitignore'
124
117
'assets',
125
118
'logo.png'
126
119
],
127
- #encoding : @10
120
+ #encoding : Class [ #PNGReadWriter ]
128
121
},
129
122
SquotCypressMapper {
130
123
#package : MCPackage {
140
133
],
141
134
#encoding : 'TXT'
142
135
},
136
+ SquotImageMapper {
137
+ #path : FSAbsolutePath [
138
+ 'assets',
139
+ 'default_video_thumbnail.png'
140
+ ],
141
+ #encoding : @40
142
+ },
143
143
SquotPlaintextMapper {
144
144
#path : FSAbsolutePath [
145
145
'scripts',
189
189
'assets',
190
190
'play_circle_outline_icon.png'
191
191
],
192
- #encoding : @10
192
+ #encoding : @40
193
193
}
194
194
]
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ newFrom: aJsonObject
3
3
4
4
| thumbnailData |
5
5
thumbnailData := ((aJsonObject at: ' video' ) at: ' thumbnail' ).
6
- " thumbnailData = nil ifTrue: [
7
- thumbnailData := Dictionary new
8
- add: 'width' -> 810;
9
- add: 'height' -> 452;
10
- yourself .
11
- thumbnailData add: ('file' -> (Dictionary new add: 'id' -> -1))
12
- ]."
6
+ thumbnailData = nil ifTrue: [
7
+ thumbnailData := JsonObject newFrom: {
8
+ ' width' - > 810 .
9
+ ' height' - > 452 .
10
+ ' file ' - > ( JsonObject newFrom: { ' id ' - > - 1 }) .
11
+ }.
12
+ ].
13
13
14
14
^ self new
15
15
caption: ((aJsonObject at: ' caption' ) at: ' text' );
Original file line number Diff line number Diff line change 1
1
{
2
2
"class" : {
3
- "newFrom:" : " ED 6/21 /2024 10:49 " },
3
+ "newFrom:" : " ED 6/26 /2024 11:56 " },
4
4
"instance" : {
5
5
"asSnippet" : " JK 6/12/2024 11:31" ,
6
6
"asText" : " TR 6/20/2021 10:41" ,
Original file line number Diff line number Diff line change 2
2
newWith: aCore
3
3
4
4
|obj |
5
+ " self halt."
5
6
obj := super newWith: aCore.
6
- obj add: (Association key: - 1 value: ' /assets/default_video_thumbnail.png' ).
7
- ^ obj
7
+ " obj add: (Association key: -1 value: (Promise new initializeWithResolvedValue: ((GitAssetLoader for: 'TelegramClient')
8
+ '/assets/default_video_thumbnail.png')).
9
+ " ^ obj
Original file line number Diff line number Diff line change 2
2
"class" : {
3
3
"extractPathFrom:" : " pk 6/19/2021 16:23" ,
4
4
"imageFormFrom:" : " pk 8/5/2021 16:52" ,
5
- "newWith:" : " ED 6/21 /2024 09:15 " },
5
+ "newWith:" : " ED 6/26 /2024 12:24 " },
6
6
"instance" : {
7
7
"getFormFor:" : " JK 6/12/2024 19:28" ,
8
8
"getFormPromiseFor:" : " JK 6/12/2024 19:30" ,
You can’t perform that action at this time.
0 commit comments