Skip to content

Commit

Permalink
Merge pull request #33 from JurajKubelka/dev
Browse files Browse the repository at this point in the history
Private group conversation fix
  • Loading branch information
JurajKubelka authored Mar 12, 2018
2 parents ee5b9aa + 784405e commit 9149fc4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ externalProjects: spec
baseline: 'Brick' with: [
spec
repository: 'github://pharo-graphics/Brick/src';
loads: #development ];
baseline: 'Commander' with: [
spec repository: 'github://dionisiydk/Commander:v0.4.x' ]
loads: #development ]
].
spec for: #'pharo6.x' do: [
spec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
accessing
name
^ name
^ name ifNil: [ self nameBasedOnRecipients ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
accessing - computed
nameBasedOnRecipients
^ String streamContents: [ :aStream |
self recipients
do: [ :eachRecipient | aStream << eachRecipient username ]
separatedBy: [ aStream << ', ' ] ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
position
"Complement protocol of other channels."
^ self lastMessageId asNumber negated
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
printing
printOn: aStream
"Print channel name if available"
aStream << 'DM Channel: '.
self recipients
do: [ :eachRecipient | aStream << eachRecipient username ]
separatedBy: [ aStream << ', ' ]

0 comments on commit 9149fc4

Please sign in to comment.