| 813 | 813 | select_selected_character(this_chid, { switchMenu }); |
| 814 | 814 | } |
| 815 | 815 | |
| 816 | | - if (isMobile()) { |
| 816 | + //close open char panel if it was already open |
| 817 | + //avoids opening the char panel via Welcome Screen recent chats |
| 818 | + //or other means of calling this function (such as QRs with /go). |
| 819 | + //there should be no cases on mobile where char panel is open and |
| 820 | + //you're able to get here other than an avatar click. |
| 821 | + if (isMobile() && $('#rightNavDrawerIcon').hasClass('openIcon')) { |
| 817 | 822 | $('#rightNavDrawerIcon').trigger('click'); |
| 818 | 823 | } |
| 819 | 824 | } |