optional delete chat and bug in updateChat