     }
     
   }
-    
+  
   func changeCompany(sender:ButtonWithTeam) {
     
-     // let existing = UserDefaults.standard.value(forKey: "bcc_teams") as! Array<String>
-     // let token = existing[sender.tag-1]
-     // let cwr = left.subviews[sender.tag] as! CompanyWithRed
-     // cwr.toggleOff()
+    // let existing = UserDefaults.standard.value(forKey: "bcc_teams") as! Array<String>
+    // let token = existing[sender.tag-1]
+    // let cwr = left.subviews[sender.tag] as! CompanyWithRed
+    // cwr.toggleOff()
     
     
     if sender.team?.id == "BCC" {

            object: ["team": team!, "channel": mo.channel])
          
        }

      }
    }

    //2017-06-11 03:53:46.014074+0000 boring-company-chat[7958:82613] ["team": T035N23CL, "source_team": T035N23CL, "user": U035LF6C1, "text": wefwef, "channel": D1KD59XH9, "type": message, "ts": 1497153225.487018]
    
  }

    
    let cos = realm.objects(ChannelObject.self).filter("team = %@", team!)
    if cos.count == 0 {
      return
    }
    for c in cos {
      if c.id == channel {
