From 9d84d5d8e7f61a02c01eef021ea5e8b2f49dcf8f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 28 Apr 2018 15:31:27 +0200 Subject: Connect channels to database, currently only locally --- src/Chatbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Chatbar.cpp') diff --git a/src/Chatbar.cpp b/src/Chatbar.cpp index 51ab9f5..241a808 100644 --- a/src/Chatbar.cpp +++ b/src/Chatbar.cpp @@ -235,7 +235,7 @@ namespace dchat if(msg[0] == '/') processChatCommand(StringView(msg.data() + 1, msg.size() - 1)); else - channel->getMessageBoard().addMessage(new Message(channel->getLocalUser(), msg)); + channel->addMessage(msg); clear(); } } -- cgit v1.2.3