changes the impl of chat adapter