               Ember.Object.create(broadcast)
             ).reverse()
 
-          if receivedBroadcasts.length
-            if receivedBroadcasts.findBy('category', 'warning')
-              broadcasts.set('lastBroadcastStatus', 'warning')
-            else if receivedBroadcasts.findBy('category', 'announcement')
-              broadcasts.set('lastBroadcastStatus', 'announcement')
-            else
-              broadcasts.set('lastBroadcastStatus', '')
-
+        broadcasts.set('lastBroadcastStatus', @defineTowerColor(receivedBroadcasts))
         broadcasts.set('content', receivedBroadcasts)
         broadcasts.set('isLoading', false)
 

      seenBroadcasts.push(id)
      Travis.storage.setItem('travis.seen_broadcasts', JSON.stringify(seenBroadcasts))
      @get('broadcasts.content').removeObject(broadcast)
      unless @get('broadcasts.content').length
        @set('broadcasts.lastBroadcastStatus', '')
      else
        if @get('broadcasts.content').findBy('category', 'warning')
          @set('broadcasts.lastBroadcastStatus', 'warning')
        else if @get('broadcasts.content').findBy('category', 'announcement')
          @set('broadcasts.lastBroadcastStatus', 'announcement')
      return false
  }


  gravatarUrl: (->
    "#{location.protocol}//www.gravatar.com/avatar/#{@get('user.gravatarId')}?s=48&d=mm"
  ).property('user.gravatarId')

  defineTowerColor: (broadcastArray) ->
    if broadcastArray.length
      if broadcastArray.findBy('category', 'warning')
        return 'warning'
      else if broadcastArray.findBy('category', 'announcement')
        return 'announcement'
      else
        return ''

  broadcasts: (->

