-
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
198 changed files
with
316 additions
and
353 deletions.
There are no files selected for viewing
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,2 +1,2 @@ | ||
.DS_STORE | ||
/.idea | ||
/.idea |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
16 changes: 8 additions & 8 deletions
16
packages/TelegramClient-Core.package/TCCBasicGroupChat.class/instance/loadInfo.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,11 +1,11 @@ | ||
loading | ||
loadInfo | ||
|
||
| callbackId | | ||
callbackId := self core registerCallback: [:aBasicGroupFullInfoEvent | | ||
self | ||
memberCount: (aBasicGroupFullInfoEvent at: 'members') size; | ||
description: (aBasicGroupFullInfoEvent at: 'description'); | ||
addMembersFrom: (aBasicGroupFullInfoEvent at: 'members'). | ||
]. | ||
self core send: (TCCRequest newGetBasicGroupFullInfoOf: self groupId with: callbackId). | ||
self core | ||
send: (TCCRequest newGetBasicGroupFullInfoOf: self groupId) | ||
thenDo: [:aBasicGroupFullInfoEvent | | ||
self | ||
memberCount: (aBasicGroupFullInfoEvent at: 'members') size; | ||
description: (aBasicGroupFullInfoEvent at: 'description'); | ||
addMembersFrom: (aBasicGroupFullInfoEvent at: 'members'). | ||
]. |
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
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/class/defaultLastMessageId.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 @@ | ||
default values | ||
defaultLastMessageId | ||
|
||
^ 0 |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/addNewestMessage..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,5 @@ | ||
adding | ||
addNewestMessage: aMessage | ||
|
||
self messages add: aMessage afterIndex: 1. | ||
self messages addFirst: aMessage. | ||
self triggerEvent: #newMessage with: aMessage. |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/canSendMessages..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,4 +1,4 @@ | ||
accessing | ||
canSendMessages: aBoolean | ||
|
||
canSendMessages := aBoolean | ||
canSendMessages := aBoolean. |
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
6 changes: 6 additions & 0 deletions
6
packages/TelegramClient-Core.package/TCCChat.class/instance/lastMessageId.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,6 @@ | ||
accessing | ||
lastMessageId | ||
|
||
^ self messages | ||
ifEmpty: [ self class defaultLastMessageId ] | ||
ifNotEmpty: [ self messages last id ] |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/muted..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,4 +1,4 @@ | ||
accessing | ||
muted: aBoolean | ||
|
||
muted := aBoolean | ||
muted := aBoolean. |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/numberOfMessages.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,4 +1,4 @@ | ||
accessing | ||
numberOfMessages | ||
|
||
^ self messages size - 1 | ||
^ self messages size |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/position..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,4 +1,4 @@ | ||
accessing | ||
position: aNumber | ||
|
||
position := aNumber | ||
position := aNumber. |
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/positionKnown..st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/positionKnown.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,4 +1,4 @@ | ||
accessing | ||
positionKnown | ||
|
||
^ positionKnown | ||
^ self position notNil |
4 changes: 2 additions & 2 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/requestMessages..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,5 @@ | ||
accessing | ||
loading | ||
requestMessages: aLimit | ||
|
||
self core send: (TCCRequest newGetChatHistoryOf: self id from: self messages last id until: aLimit). | ||
self core send: (TCCRequest newGetChatHistoryOf: self id from: self lastMessageId until: aLimit). | ||
self numberOfRequestedMessages: self numberOfMessages + aLimit. |
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/type..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/type.st
This file was deleted.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
....package/TCCCore.class/instance/chats..st → .../TCCChatsHandler.class/instance/chats..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,4 +1,4 @@ | ||
accessing | ||
chats: aCollection | ||
|
||
chats := aCollection. | ||
chats := aCollection |
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChatsHandler.class/instance/initialize.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 @@ | ||
initialization | ||
initialize | ||
|
||
self chats: TCCChats newWithDefaultSorting. |
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
7 changes: 3 additions & 4 deletions
7
packages/TelegramClient-Core.package/TCCChatsHandler.class/instance/updateChatPosition..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,8 +1,7 @@ | ||
event handling | ||
updateChatPosition: anEvent | ||
|
||
(self core chats getChat: (anEvent at: 'chat_id')) | ||
position: ((anEvent at: 'position') at: 'order'); | ||
positionKnown: true. | ||
(self chats getChat: (anEvent at: 'chat_id')) | ||
position: ((anEvent at: 'position') at: 'order'). | ||
|
||
self core chats notify. | ||
self chats notify. |
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
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-Core.package/TCCCore.class/instance/authHandler..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/TelegramClient-Core.package/TCCCore.class/instance/authHandler.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCCore.class/instance/authenticationHandler..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 @@ | ||
accessing | ||
authenticationHandler: anAuthenticationHandler | ||
|
||
authenticationHandler := anAuthenticationHandler |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCCore.class/instance/authenticationHandler.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 @@ | ||
accessing | ||
authenticationHandler | ||
|
||
^ authenticationHandler |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCCore.class/instance/checkAuthenticationCode..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,4 +1,4 @@ | ||
handlers | ||
checkAuthenticationCode: aString | ||
|
||
self authHandler checkAuthenticationCode: aString. | ||
self authenticationHandler checkAuthenticationCode: aString. |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCCore.class/instance/freeClient.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,4 +1,4 @@ | ||
accessing | ||
handlers | ||
freeClient | ||
|
||
self client ifNotNil: [self client free]. |
7 changes: 3 additions & 4 deletions
7
packages/TelegramClient-Core.package/TCCCore.class/instance/getOwnProfile.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,7 +1,6 @@ | ||
events | ||
getOwnProfile | ||
|
||
| callbackId | | ||
|
||
callbackId := self registerCallback: [:aUserEvent | self setUserID: aUserEvent]. | ||
self send: (TCCRequest newGetMeWith: callbackId). | ||
self | ||
send: TCCRequest newGetMe | ||
thenDo: [:aUserEvent | self setUserID: aUserEvent]. |
Oops, something went wrong.