updating the notification in the chat