Changeset 219

Show
Ignore:
Timestamp:
05/31/07 22:41:20 (18 months ago)
Author:
kaz
Message:

Close #31

  • Update friends statuses completely when user select 'Update statuses' menu
Location:
trunk/twitternotifier
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/twitternotifier/components/nsTwitterNotifier.js

    r216 r219  
    267267 
    268268    switch (msg.command) { 
    269     case "reload": 
    270       this.get("statuses.friends_timeline"); 
    271       break; 
    272  
    273269    case "init-session": 
    274270      if (this.retrievePassword()) { 
     
    281277      break; 
    282278 
    283     case "get-last5-messages": 
    284       this.getLast5Messages(); 
     279    case "get-messages": 
     280      this.getMessages(); 
    285281      break; 
    286282 
     
    307303    } 
    308304 
     305    // Reset last access (for retrieve last 20 messages). 
     306    this._lastAccess = null; 
     307 
    309308    this.updatePref(); 
    310309    this.getFriendsTimeline(); 
     
    332331  }, 
    333332 
    334   getLast5Messages: function() { 
     333  getMessages: function() { 
    335334    var tmp = this._messages; 
    336335    tmp.splice(20); 
  • trunk/twitternotifier/content/twitternotifier.js

    r218 r219  
    439439    if (e.button == 0) { 
    440440      if (this._util.getPassword()) {  
    441         this._util.notify("get-last5-messages"); 
     441        this._util.notify("get-messages"); 
    442442        this.showUnreadCount(); 
    443443      }