     @notification.moment = moment(@notification.getTimestamp())
     @disposables.add atom.tooltips.add(@timestamp, title: @notification.moment.format("ll LTS"))
     @updateTimestamp()
+    @timestampInterval = setInterval(@updateTimestamp.bind(this), 60 * 1000)
+    @disposables.add new Disposable => clearInterval @timestampInterval
 
     @element = document.createElement('li')
     @element.classList.add('notifications-log-item', @notification.getType())

moment = require 'moment'

module.exports = class NotificationsLogItem
  timestampTimeout: null

  constructor: (@notification) ->
    @emitter = new Emitter
    @disposables = new CompositeDisposable
    @disposables.add new Disposable => clearTimeout @timestampTimeout
    @updateTimestamp = @updateTimestamp.bind(this)
    @render()

  render: ->

    @emitter.on 'did-destroy', callback

  updateTimestamp: ->
    @timestamp.textContent = @notification.moment.fromNow()
