Skip to content

Commit fedcdd4

Browse files
Added a Messages-Window displaying sent messages per chat (#151)
* displaying messages and fixed logout button * changed structure for chatlist and added better redrawing logic * fixed linting problems Co-authored-by: Rohan Sawahn <[email protected]>
1 parent db9a723 commit fedcdd4

File tree

72 files changed

+290
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+290
-137
lines changed

packages/TelegramClient-Core.package/TCCChatsHandler.class/instance/addChat..st

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ addChat: aChatEvent
88
title: ((aChatEvent at: 'chat') at: 'title');
99
order: ((aChatEvent at: 'chat') at: 'order').
1010

11-
self app chats add: chat.
12-
self app triggerEvent: #newChatLoaded.
11+
self app chats
12+
add: chat;
13+
triggerEvent: #newChatLoaded.

packages/TelegramClient-Core.package/TCCChatsHandler.class/instance/sendMessage.to..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sendMessage: aString to: aChatID
33

44
self client send: (TCCRequest
55
newWithType: 'sendMessage'
6-
from: { 'chat_id' -> aChatID.
6+
from: {'chat_id' -> aChatID.
77
'input_message_content' -> (Dictionary newFrom: {
88
'@type' -> 'inputMessageText'.
99
'text' -> (Dictionary newFrom: {

packages/TelegramClient-Core.package/TCCChatsHandler.class/methodProperties.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"class" : {
33
},
44
"instance" : {
5-
"addChat:" : "js 6/13/2020 19:18",
5+
"addChat:" : "rs 6/17/2020 22:54",
66
"app" : "js 6/1/2020 14:44",
77
"app:" : "js 6/1/2020 14:45",
88
"client" : "js 6/1/2020 14:44",
99
"getChats" : "rs 6/6/2020 16:36",
10-
"sendMessage:to:" : "rs 6/13/2020 15:40" } }
10+
"sendMessage:to:" : "rs 6/17/2020 20:58" } }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a Chat, that does nothing and stands behind every other chat
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
accessing
2-
chatId
2+
id
33

44
^ -1
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"class" : {
3+
},
4+
"instance" : {
5+
"id" : "rs 6/17/2020 22:31" } }
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"category" : "TelegramClient-Core",
3+
"classinstvars" : [
4+
],
5+
"classvars" : [
6+
],
7+
"commentStamp" : "rs 6/17/2020 23:11",
8+
"instvars" : [
9+
],
10+
"name" : "TCCNullChat",
11+
"pools" : [
12+
],
13+
"super" : "TCCChat",
14+
"type" : "normal" }
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
creation
2+
newWithChat: aChat andWidth: aWidth
3+
4+
^ self new
5+
chat: aChat;
6+
width: aWidth;
7+
addTitle;
8+
addBorder;
9+
yourself

packages/TelegramClient-UI.package/TCUChatListItem.class/class/newWithChatName.andWidth..st

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
initialization
2+
chat: aChat
3+
4+
chat := aChat.

0 commit comments

Comments
 (0)