Skip to content

Commit

Permalink
Keep comm channel on top on channel UI update
Browse files Browse the repository at this point in the history
  • Loading branch information
LenweSaralonde committed Jul 12, 2020
1 parent b29de73 commit a9e4d2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/Musician.Comm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ function Musician.Comm.JoinChannel()
-- Channel joiner already active
if Musician.Comm.channelJoiner ~= nil then return end

-- Keep communication channel on top every time a channel is joined or left
Musician.Comm:RegisterEvent("CHANNEL_UI_UPDATE", reorderChannels)

-- Channel status changed
Musician.Comm:RegisterEvent("CHAT_MSG_CHANNEL_NOTICE", function(event, ...)
local text, _, _, _, _, _, _, _, channelName = ...
Expand Down

0 comments on commit a9e4d2e

Please sign in to comment.