Initial switch between MainActivity and ChatRoom for displaying
notification.
Initial switch between main and chat room activities for message displaying