Changed both initial delete user and handleDeleteUserNow functions to utilise the same logout function that is used elsewhere. Also changed the handleDeleteUserNow order a little bit. I think now this should work, since both node user and mattermost user are actually logged out when deleting the user (either first time or permanently).
Changed both initial delete user and handleDeleteUserNow functions to utilise the same logout function that is used elsewhere. Also changed the handleDeleteUserNow order a little bit. I think now this should work, since both node user and mattermost user are actually logged out when deleting the user (either first time or permanently).