Fixing tweets rendeting by loading local users from DB.
This commit is contained in:
parent
50a3ef901b
commit
ee9050a9b9
@ -1,6 +1,6 @@
|
||||
accessing
|
||||
getLocalMessages
|
||||
"TO DO! This method should return messages from the local database"
|
||||
|
||||
| allTweets myTweets tweetsWithAntecesor |
|
||||
|
||||
TweetsCollection storeDB.
|
||||
|
@ -18,7 +18,7 @@ asCardElement
|
||||
margin: (BlInsets left: 20);
|
||||
addChild: (BrLabel new
|
||||
aptitude: BrGlamorousLabelAptitude;
|
||||
text: '@' , self user userName , ' | ' , self created asString;
|
||||
text: '@' , (self userFromId:authorId) userName , ' | ' , self created asString;
|
||||
beSmallSize);
|
||||
addChild: anEditor.
|
||||
buttonsPane := BrHorizontalPane new
|
||||
@ -42,7 +42,7 @@ asCardElement
|
||||
hMatchParent;
|
||||
vFitContent;
|
||||
addChildren: {
|
||||
(self user profileImage asElement asScalableElement size: 64 @ 64).
|
||||
((self userFromId: authorId) profileImage asElement asScalableElement size: 64 @ 64).
|
||||
BrVerticalPane new
|
||||
cellSpacing: 5;
|
||||
hMatchParent;
|
||||
|
@ -0,0 +1,3 @@
|
||||
accessing
|
||||
userFromId: userId
|
||||
^TwitterUser stored detect: [ :each | each id = userId asInteger ]
|
3
Socialmetrica.package/TwitterUser.class/class/stored.st
Normal file
3
Socialmetrica.package/TwitterUser.class/class/stored.st
Normal file
@ -0,0 +1,3 @@
|
||||
accessing
|
||||
stored
|
||||
^ self storedInstances asOrderedCollection
|
Loading…
Reference in New Issue
Block a user