summaryrefslogtreecommitdiff
path: root/components/chatwindow.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-30 02:00:56 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-30 02:00:56 -0400
commitc90c777daa1d3bc4029380529033f3c51383bbb7 (patch)
tree48f3f3cdb88793ab20e4f7e7899b015edae4c1ce /components/chatwindow.cpp
parentfacb89012a4ed58397b5e7334a8cb5c3d751b85e (diff)
downloadabaddon-portaudio-c90c777daa1d3bc4029380529033f3c51383bbb7.tar.gz
abaddon-portaudio-c90c777daa1d3bc4029380529033f3c51383bbb7.zip
add basic menu to chat messages
Diffstat (limited to 'components/chatwindow.cpp')
-rw-r--r--components/chatwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp
index 8b477e0..647d5b2 100644
--- a/components/chatwindow.cpp
+++ b/components/chatwindow.cpp
@@ -115,6 +115,9 @@ void ChatWindow::ProcessMessage(const MessageData *data, bool prepend) {
// actual content
if (type == ChatDisplayType::Text) {
auto *text = Gtk::manage(new ChatMessageTextItem(data));
+ text->ID = data->ID;
+ text->ChannelID = m_active_channel;
+ text->SetAbaddon(m_abaddon);
container->AddNewContent(text, prepend);
m_id_to_widget[data->ID] = text;
}