         username: osu.trans 'users.deleted'
 
     @cache.users
+
+
+  ujsDiscussionUpdate: (_e, data) =>
+    # to allow ajax:complete to be run
+    Timeout.set 0, => @discussionUpdate(null, beatmapset: data)


    $(window).stop()
    Timeout.clear @modeScrollTimeout


  render: =>

    $.subscribe 'user:update.profilePage', @userUpdate
    $.subscribe 'profile:showMore.profilePage', @showMore
    $.subscribe 'profile:page:jump.profilePage', @pageJump
    $.subscribe 'beatmapsetDiscussions:update.profilePage', @discussionUpdate
    $(document).on 'ajax:success.beatmapDiscussions', '.js-beatmapset-discussion-update', @ujsDiscussionUpdate
    $(window).on 'throttled-scroll.profilePage', @pageScan
    $(document).on 'turbolinks:before-cache.profilePage', @saveStateToContainer

