Merge pull request #683 from glowing-bear/nicklist-fixes
Request nicklist using ptr instead of fullname
This commit is contained in:
commit
870af58ed4
|
@ -282,10 +282,13 @@ weechat.factory('connection',
|
||||||
};
|
};
|
||||||
|
|
||||||
var requestNicklist = function(bufferId, callback) {
|
var requestNicklist = function(bufferId, callback) {
|
||||||
bufferId = bufferId || null;
|
// Prevent requesting nicklist for all buffers if bufferId is invalid
|
||||||
|
if (!bufferId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ngWebsockets.send(
|
ngWebsockets.send(
|
||||||
weeChat.Protocol.formatNicklist({
|
weeChat.Protocol.formatNicklist({
|
||||||
buffer: bufferId
|
buffer: "0x"+bufferId
|
||||||
})
|
})
|
||||||
).then(function(nicklist) {
|
).then(function(nicklist) {
|
||||||
handlers.handleNicklist(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
|
// Send a request for the nicklist if it hasn't been loaded yet
|
||||||
if (!ab.nicklistRequested()) {
|
if (!ab.nicklistRequested()) {
|
||||||
connection.requestNicklist(ab.fullName, function() {
|
connection.requestNicklist(ab.id, function() {
|
||||||
$scope.showNicklist = $scope.updateShowNicklist();
|
$scope.showNicklist = $scope.updateShowNicklist();
|
||||||
// Scroll after nicklist has been loaded, as it may break long lines
|
// Scroll after nicklist has been loaded, as it may break long lines
|
||||||
$rootScope.scrollWithBuffer(true);
|
$rootScope.scrollWithBuffer(true);
|
||||||
|
|
Loading…
Reference in New Issue