Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Reducing chat history length and putting the blinky thingy back
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Slattery committed Apr 30, 2011
1 parent cc15782 commit 1d53d4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ NodeChatController = {
log('user is ' + options.userName);

//Records the client version to support auto-updates
versio = this.version = options.version;
version = this.version = options.version;


this.model = new models.NodeChatModel();
Expand Down
2 changes: 1 addition & 1 deletion lib/channelmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
return cb && cb (new Error('[getHistoryForChannel] has null client or rc_sub'));
}

rc.lrange('topics:' + channel, -1000, -1, function (err, chats) {
rc.lrange('topics:' + channel, -100, -1, function (err, chats) {
if (err) {
winston.error('[getHistoryForChannel][fn] Error: ' + err);
}
Expand Down
3 changes: 2 additions & 1 deletion views/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ var NodeChatView = Backbone.View.extend({
, initialize: function (options) {
var main, that;

_.bindAll(this, 'addUser', 'removeUser', 'addChat', 'removeChat', 'triggerAutoComplete', 'suggestAutoComplete', 'sendMessage');
_.bindAll(this, 'addUser', 'removeUser', 'addChat', 'removeChat', 'triggerAutoComplete', 'suggestAutoComplete', 'sendMessage', 'setMsgAlert');
this.model.users.bind('add', this.addUser);
this.model.users.bind('remove', this.removeUser);
this.model.chats.bind('add', this.addChat);
this.model.chats.bind('add', this.setMsgAlert);
this.model.chats.bind('remove', this.removeChat);
this.newMessages = 0;
this.socket = options.socket;
Expand Down

0 comments on commit 1d53d4f

Please sign in to comment.