         if seg.type == "LINE_BREAK" then br(); continue
         f = seg.formatting ? {}
         href = seg?.link_data?.link_target
-        ifpass(href, ((f) -> a {href}, f)) ->
+        ifpass(href, ((f) -> a {href, onclick}, f)) ->
             ifpass(f.bold, b) ->
                 ifpass(f.italics, i) ->
                     ifpass(f.underline, u) ->

            }
            fallback_name: name
        }, silent:true

# helper method to group events in time/user bunches
groupEvents = (es, entity) ->

                    clz = ['ugroup']
                    clz.push 'self' if entity.isSelf(u.cid)
                    div class:clz.join(' '), ->
                        a href:linkto(u.cid), {onclick}, class:'sender', sender
                        div class:'umessages', ->
                            for e in u.event
                                div key:e.event_id, class:'message', ->
