-
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.
* test TCCCore callback and TCCUser constructor (+5 squashed commit) Squashed commit: [28b327f] refactor TCCCore [153d794] Show message author in group chat notification [54d9c3a] add user api call with callback for new messages [fdb11cb] fix sender user id key in message constructor [54f21dd] Message includes chat object (+1 squashed commits) Squashed commits: [f5056f3] show title of chat in notification * use TCCChat>>newFromNewChatEvent constructor in TCCChatsHandler * Notification shows sender, chat and more of the message * TCCNullMessage does not rely on the chat inst var * fixed most linter tests * fix some remarks of PR #339 * test API assumptions * integrate pr feedback * fix last remarks of PR #339 * fixed most linter tests * fixed typo in method names * Swalint considered harmful * test Notification * You can't see me * beautiful acceptance tests * im done with this linter * go return yourself * test message chatID method * exclude TCTAcceptanceTests from long method test in linter; remove too many inst vars test * rename testing* -> mock* in TCTAcceptanceTests; use ifFalse in TCUNotification>>chatTitle * Added class Users and updated Core for promise handling. * Added test for getUserFor in TCCUsers. * wip * mwip * introduce the first version of info pages for chats * fix linter tests * integrate users getUserFor: into TCCCore * use TCTNoTDLibCore in acceptance tests * fix spacing in TitleBar * fix linter * add TCT ui tests and distill mocks into separate class * remove moved mocks from AcceptanceTests * save test artifacts in pipeline * add _builds to path of artifacts * remove '/' and '-' from artifact name * change hash to correct (pipeline) value * add changes in main.yml. again. * Editing Assert messages, created default values, and made expected screenshot test failures for Squeak 5.2 * Using NoTDLibCore now * Added Morphic-Testing-Framework to Telegram Baseline and removing NoTDLibCore again * Changing test phone number for further funny testing * Fixing baseline * WIP UI Test * merge newest develop * member count is now displayed when it finished loading, basicGroup member count is now correct * add findByTextContent to MorphWrapper and write some tests for the popup * Fixing the last test and adding a class comment * Removing TCTMorphWrapper * Solved merge conflicts * Update main.yml again. Why is this being removen on every merge??? * ui test for chat member count * test all chats in lists * switch mouseUp to mouseDown * fix regressions from merge * add delays to MTF tests * add vivide to baseline * add vivide to baseline * add initial version of Group description * refactor info page description * fixed merge * load members for basicGroups * fix merge * user list - work in progress * show chat member list * adding member list with scroll bar * fix linter * refactoring of user list, some linter tests are failing, no idea why * small user list changes * refactor chats and groups * delete file * rename app to core * add user loading * fix merge issues * fix tests * User List tests * fix load more button of user list * addmock * add the 2 most beautiful tests ever created * add missing tests * fix tests * fix tests * fix whitespaces * remove conflict marker * fix image hash for chat info page * fix some pr remarks * delete Tests package * fixing most of the change requests * fixing trailing whitespaces * replace screenshot hash * fix last requests * fix pr remarks * remove test package for the 1000th time Co-authored-by: permler <paul.ermler@student.hpi.uni-potsdam.de> Co-authored-by: Philipp Keese <philipp.keese@student.hpi.de> Co-authored-by: Raphael Kunert <this.is-not@my.email> Co-authored-by: rsommerfeld <romeo.sommerfeld@web.de> Co-authored-by: Romeo Sommerfeld <55324905+rsommerfeld@users.noreply.github.com> Co-authored-by: Jannis Berndt <berndtjannis@gmail.com> Co-authored-by: PaulPanter <paul.ermler@web.de>
- Loading branch information
1 parent
0c5f139
commit 2bdb35e
Showing
219 changed files
with
840 additions
and
319 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
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,6 +1,6 @@ | ||
name: CI-Lint | ||
|
||
on: | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
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,6 +1,6 @@ | ||
name: CI | ||
|
||
on: | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
defines prequisites |
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
...ages/BaselineOfTelegramClient.package/BaselineOfTelegramClient.class/instance/postLoad.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,6 +1,6 @@ | ||
baseline | ||
postLoad | ||
(((Smalltalk respondsTo: #globals) | ||
(((Smalltalk respondsTo: #globals) | ||
ifTrue: [Smalltalk globals] "Squeak >=4.1" | ||
ifFalse: [Smalltalk]) "Pharo and squeak <=4.0" | ||
at: #SwaLint) perform: #install. |
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
1 change: 1 addition & 0 deletions
1
packages/TelegramClient-Core.package/TCCBasicGroupChat.class/README.md
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 @@ | ||
A TCCBasicGroupChat represents a Telegram BasicGroup with up to 200 members |
5 changes: 5 additions & 0 deletions
5
.../TelegramClient-Core.package/TCCBasicGroupChat.class/instance/initializeFromChatEvent..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,5 @@ | ||
initialization | ||
initializeFromChatEvent: anEvent | ||
|
||
super initializeFromChatEvent: anEvent. | ||
self groupId: (((anEvent at: 'chat') at: 'type') at: 'basic_group_id') |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCBasicGroupChat.class/instance/isBasicGroup.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 | ||
isBasicGroup | ||
|
||
^ true |
14 changes: 14 additions & 0 deletions
14
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
loading | ||
loadInfo | ||
|
||
self core client send: (TCCRequest | ||
newWithType: 'getBasicGroupFullInfo' | ||
from: { | ||
'basic_group_id'->self groupId. | ||
'@extra'->self groupId}). | ||
self core registerCallback: [:aBasicGroupFullInfoEvent | | ||
self | ||
memberCount: (aBasicGroupFullInfoEvent at: 'members') size; | ||
description: (aBasicGroupFullInfoEvent at: 'description'). | ||
self addMembersFrom: (aBasicGroupFullInfoEvent at: 'members'). | ||
] with: self groupId asString |
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-Core.package/TCCBasicGroupChat.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"initializeFromChatEvent:" : "per 6/4/2021 15:06", | ||
"isBasicGroup" : "per 6/15/2021 08:41", | ||
"loadInfo" : "per 6/15/2021 08:36" } } |
14 changes: 14 additions & 0 deletions
14
packages/TelegramClient-Core.package/TCCBasicGroupChat.class/properties.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "TelegramClient-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "per 6/4/2021 14:36", | ||
"instvars" : [ | ||
], | ||
"name" : "TCCBasicGroupChat", | ||
"pools" : [ | ||
], | ||
"super" : "TCCGroupChat", | ||
"type" : "normal" } |
17 changes: 10 additions & 7 deletions
17
packages/TelegramClient-Core.package/TCCChat.class/class/newFromChatEvent..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,14 @@ | ||
instance creation | ||
newFromChatEvent: anEvent | ||
|
||
| type | | ||
| type chat | | ||
type := ((anEvent at: 'chat') at: 'type') at: '@type'. | ||
|
||
^ (((type = 'chatTypeSupergroup') or: (type = 'chatTypeBasicGroup')) | ||
ifTrue: [TCCGroup new] | ||
ifFalse: [self new]) | ||
initializeFromChatEvent: anEvent; | ||
yourself | ||
type caseOf: { | ||
['chatTypeSupergroup']->[chat := TCCSuperGroupChat new]. | ||
['chatTypeBasicGroup']->[chat := TCCBasicGroupChat new]. | ||
['chatTypePrivate']->[chat := TCCPrivateChat new]. | ||
}. | ||
|
||
^ chat | ||
initializeFromChatEvent: anEvent; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/core..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 | ||
core: aCore | ||
|
||
core := aCore |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/core.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 | ||
core | ||
|
||
^ core |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/infoLoaded..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 | ||
infoLoaded: aBoolean | ||
|
||
infoLoaded := aBoolean |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/infoLoaded.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 | ||
infoLoaded | ||
|
||
^ infoLoaded |
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/instance/isBasicGroup.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 | ||
isBasicGroup | ||
|
||
^ false |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/isGroup.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 | ||
isGroup | ||
|
||
^ false | ||
self subclassResponsibility |
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCChat.class/instance/isPrivate.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 | ||
isPrivate | ||
|
||
^ (self type = 'chatTypePrivate') | ||
self subclassResponsibility |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.class/instance/isSuperGroup.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 | ||
isSuperGroup | ||
|
||
^ false |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCChat.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
loadInfo | ||
|
||
self subclassResponsibility |
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-Core.package/TCCChat.class/instance/loadInfoIfNotLoaded.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 @@ | ||
accessing | ||
loadInfoIfNotLoaded | ||
|
||
self infoLoaded ifFalse: [ | ||
self loadInfo. | ||
self infoLoaded: true. | ||
] |
18 changes: 13 additions & 5 deletions
18
packages/TelegramClient-Core.package/TCCChat.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
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: 2 additions & 7 deletions
9
packages/TelegramClient-Core.package/TCCChatsHandler.class/instance/addChat..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
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
15 changes: 0 additions & 15 deletions
15
...TelegramClient-Core.package/TCCChatsHandler.class/instance/loadBasicGroupInfoFor.with..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
18 changes: 8 additions & 10 deletions
18
packages/TelegramClient-Core.package/TCCChatsHandler.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
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCCore.class/class/newWithTeleClient..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 @@ | ||
as yet unclassified | ||
instance creation | ||
newWithTeleClient: aTeleClient | ||
|
||
^ self basicNew | ||
|
Oops, something went wrong.