Request nicklist using ptr instead of fullname

paste-quickfix
Tor Hveem 10 years ago
parent 8e43758c2e
commit 4f686d512d
  1. 7
      js/connection.js
  2. 2
      js/glowingbear.js

@ -282,10 +282,13 @@ weechat.factory('connection',
};
var requestNicklist = function(bufferId, callback) {
bufferId = bufferId || null;
// Prevent requesting nicklist for all buffers if bufferId is invalid
if (!bufferId) {
return;
}
ngWebsockets.send(
weeChat.Protocol.formatNicklist({
buffer: bufferId
buffer: "0x"+bufferId
})
).then(function(nicklist) {
handlers.handleNicklist(nicklist);

@ -168,7 +168,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// Send a request for the nicklist if it hasn't been loaded yet
if (!ab.nicklistRequested()) {
connection.requestNicklist(ab.fullName, function() {
connection.requestNicklist(ab.id, function() {
$scope.showNicklist = $scope.updateShowNicklist();
// Scroll after nicklist has been loaded, as it may break long lines
$rootScope.scrollWithBuffer(true);

Loading…
Cancel
Save