Skip to content

Commit

Permalink
update chat list everytime entering chats page
Browse files Browse the repository at this point in the history
  • Loading branch information
lozy219 committed Nov 5, 2015
1 parent 4a2c7c4 commit 15ffc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/controllers/chatsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ angular.module('letterbox.controllers')
}
$scope.chats = temp;
}
RoomsService.updateRooms();
$scope.$on('$ionicView.enter', RoomsService.updateRooms);
eventbus.registerListener('roomsUpdated', updateRooms);
eventbus.registerListener('roomMessage', function(roomMessage) {
var message = roomMessage.message;
Expand Down

0 comments on commit 15ffc55

Please sign in to comment.