     return if not c # region cannot take undefined
     name = nameofconv c
     active = conv.lastActive(c)
+
+    if updateActiveTimer?
+      clearInterval updateActiveTimer
+
+    # Update the active label every 10 seconds
+    if active != 0
+      updateActiveTimer = setInterval () ->
+        el = document.querySelector('.namewrapper > .active')
+        if el?
+          active = parseInt el.getAttribute('active')
+          el.innerHTML = i18n.__('conversation.active:Active %s', moment(active).fromNow()) if active != 0
+      , 10 * 1000
+
     div class:'namewrapper', ->
         span class:'name', ->
           if conv.isQuiet(c)

moment    = require('moment')

onclickaction = (a) -> (ev) -> action a

module.exports = view (models) ->
  {conv, viewstate} = models

          if conv.isStarred(c)
            span class:'material-icons', "star"
          name
        span class:'active', active:active, i18n.__('conversation.active:Active %s', moment(active).fromNow()) if active != 0

    div class:"optionwrapper", ->
      div class:'button'
      , title: i18n.__('conversation.options:Conversation Options')
