/* * Copyright 2021, Jaidyn Levesque * All rights reserved. Distributed under the terms of the MIT license. */ #include "ConversationItem.h" #include "Conversation.h" #include "NotifyMessage.h" ConversationItem::ConversationItem(const char* name, Conversation* chat) : BStringItem(name), fChat(chat) { } Conversation* ConversationItem::GetConversation() { return fChat; } void ConversationItem::ObserveString(int32 what, BString str) { switch (what) { case STR_ROOM_NAME: SetText(str.String()); break; } }