def take_thread_control(uid): t = ThreadMessage(uid) t.send('take_thread_control') Chat.set_active(uid)
def received_thread_control(uid): Chat.set_active(uid)