-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCFileStore.class/class/imageFormFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
utility | ||
imageFormFrom: aString | ||
|
||
^ Form fromFileNamed: aString |
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormFor..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
utility | ||
getFormFor: anImageId | ||
|
||
| promise | | ||
promise := self getFormPromiseFor: anImageId. | ||
promise wait. | ||
^ promise value |
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormPromiseFor..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
utility | ||
getFormPromiseFor: anImageId | ||
|
||
| promise | | ||
promise := self at: anImageId ifAbsent: [ | ||
self at: anImageId put: Promise new. | ||
self requestFileFor: anImageId with: (self at: anImageId). | ||
self at: anImageId | ||
]. | ||
^ promise >>= [:aPath | self class imageFormFrom: aPath] |
3 changes: 3 additions & 0 deletions
3
packages/TelegramClient-Core.package/TCCFileStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "JK 6/12/2024 19:32", | ||
"imageFormFrom:" : "JK 6/21/2024 13:53", | ||
"newWith:" : "pk 6/19/2021 18:09" }, | ||
"instance" : { | ||
"core" : "pk 6/19/2021 16:13", | ||
"core:" : "pk 6/19/2021 16:13", | ||
"getFormFor:" : "JK 6/21/2024 13:30", | ||
"getFormPromiseFor:" : "JK 6/21/2024 13:47", | ||
"requestFileFor:with:" : "JK 6/12/2024 19:23" } } |
16 changes: 8 additions & 8 deletions
16
packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "pk 6/19/2021 16:23", | ||
"imageFormFrom:" : "pk 8/5/2021 16:52", | ||
"newWith:" : "6/14/2024 09:21:38" }, | ||
"extractPathFrom:" : "6/21/2024 14:11:19", | ||
"imageFormFrom:" : "6/21/2024 14:11:19", | ||
"newWith:" : "6/21/2024 14:11:19" }, | ||
"instance" : { | ||
"core" : "6/14/2024 09:21:38", | ||
"core:" : "6/14/2024 09:21:38", | ||
"getFormFor:" : "JK 5/16/2024 22:13", | ||
"getFormPromiseFor:" : "rgw 6/6/2022 18:43", | ||
"requestImageFor:with:" : "JK 6/12/2024 19:46" } } | ||
"core" : "6/21/2024 14:11:19", | ||
"core:" : "6/21/2024 14:11:19", | ||
"getFormFor:" : "6/21/2024 14:11:19", | ||
"getFormPromiseFor:" : "6/21/2024 14:11:19", | ||
"requestImageFor:with:" : "6/21/2024 14:11:19" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/TelegramClient-Core.package/TCCStickerStore.class/class/imageFormFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
utility | ||
imageFormFrom: aString | ||
|
||
| file byteArray | | ||
file := FileStream fileNamed: aString. | ||
file binary. | ||
byteArray := file next: file size. | ||
file close. | ||
^ (TCCLibWebP decode: byteArray). |
17 changes: 9 additions & 8 deletions
17
packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "pk 6/19/2021 16:23", | ||
"extractPathFrom:" : "6/21/2024 14:11:19", | ||
"imageFormFrom:" : "JK 6/21/2024 13:46", | ||
"newWith:" : "JK 6/20/2024 22:18", | ||
"stickerFormFrom:" : "JK 6/5/2024 11:15" }, | ||
"stickerFormFrom:" : "6/21/2024 14:11:19" }, | ||
"instance" : { | ||
"core" : "pk 6/19/2021 16:13", | ||
"core:" : "pk 6/19/2021 16:13", | ||
"core" : "6/21/2024 14:11:19", | ||
"core:" : "6/21/2024 14:11:19", | ||
"downloadStickerSet:" : "JK 6/19/2024 11:33", | ||
"getFormFor:" : "JK 6/5/2024 11:12", | ||
"getFormPromiseFor:" : "JK 5/16/2024 21:21", | ||
"getFormFor:" : "6/21/2024 14:11:19", | ||
"getFormPromiseFor:" : "6/21/2024 14:11:19", | ||
"getInstalledStickers" : "JK 6/5/2024 11:37", | ||
"loadStickerIds" : "JK 6/20/2024 23:39", | ||
"requestStickerFor:with:" : "JK 5/16/2024 21:40", | ||
"stickerIds" : "6/21/2024 00:59:09", | ||
"stickerIds:" : "6/21/2024 00:59:09", | ||
"stickerIds" : "JK 6/21/2024 14:11", | ||
"stickerIds:" : "JK 6/21/2024 14:11", | ||
"stickerSets" : "JK 6/19/2024 11:30", | ||
"stickerSets:" : "JK 6/19/2024 11:30", | ||
"storeStickerSet:" : "JK 6/19/2024 11:44" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "pk 6/19/2021 16:23", | ||
"imageFormFrom:" : "pk 8/5/2021 16:52" }, | ||
"extractPathFrom:" : "6/21/2024 14:11:19", | ||
"imageFormFrom:" : "6/21/2024 14:11:19" }, | ||
"instance" : { | ||
"getFormFor:" : "JK 6/12/2024 19:28", | ||
"getFormPromiseFor:" : "JK 6/12/2024 19:30", | ||
"getFormFor:" : "6/21/2024 14:11:19", | ||
"getFormPromiseFor:" : "6/21/2024 14:11:19", | ||
"getVideoFor:" : "JK 6/12/2024 19:48", | ||
"getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/TelegramClient-UI.package/TCUStickerListItem.class/instance/mouseDown..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
event handling | ||
mouseDown: anEvent | ||
|
||
self selectedChat sendStickerMessage: path. | ||
"Transcript show: self asString." | ||
self selectedChat sendStickerMessage: self path. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters