If you try to scroll the user list (with enough users) for a chat channel in the social pane it errors out with the following error:
Interface\FrameXML\ChannelFrame.lua:574: Usage: GetChannelDisplayInfo(index):
Interface\FrameXML\ChannelFrame.lua:574: in function `updateFunction':
Interface\FrameXML\UIPanelTemplates.lua:233: in function `FauxScrollFrame_OnVerticalScroll':
So I started poking around the Blizzard code. In UIPanelTemplates.lua FauxScrollFrame_OnVerticalScroll is calling ChannelFrame.lua with a table instead of a channel id. The check at the top of ChannelRoster_Update don't seem to catch this. So I came up with this fix:
old_ChannelRoster_Update = ChannelRoster_Update;
function ChannelRoster_Update(id)
if type(id) == "table" then
id = GetSelectedDisplayChannel();
end
old_ChannelRoster_Update(id)
end
Is this a correct fix?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
This happens with the default Blizzard UI.
If you try to scroll the user list (with enough users) for a chat channel in the social pane it errors out with the following error:
So I started poking around the Blizzard code. In UIPanelTemplates.lua FauxScrollFrame_OnVerticalScroll is calling ChannelFrame.lua with a table instead of a channel id. The check at the top of ChannelRoster_Update don't seem to catch this. So I came up with this fix:
Is this a correct fix?