I'm not sure that we should update last-active and calculating "is online" on the chat's side. It leads to updating each chat every second.