receiving sms and updating in the chat and history activities