implemented part of ChatroomReceiver