Local storage: getting messages from local DB.
This commit is contained in:
parent
f563f964b2
commit
02ab2bd74a
@ -1,4 +1,12 @@
|
||||
accessing
|
||||
getLocalMessages
|
||||
"TO DO! This method should return messages from the local database"
|
||||
^ nil
|
||||
| allTweets myTweets |
|
||||
|
||||
allTweets := Tweet storedInstances asOrderedCollection.
|
||||
allTweets ifNil: [ ^ nil ].
|
||||
myTweets := TweetsCollection new.
|
||||
myTweets tweets: (allTweets select: [ :each | each timelines isNotEmpty and: [each timelines keys first = self userName] ] ).
|
||||
self tweets: myTweets.
|
||||
^ self tweets
|
||||
|
Loading…
Reference in New Issue
Block a user