summaryrefslogtreecommitdiff
path: root/src/components/chatwindow.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-06-17 02:46:55 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-06-17 02:46:55 -0400
commit4ee7025ab09b606a2556bf9f42c1218d7fd72843 (patch)
tree4b7747da4be59e672d649e254474d09cab0f01c0 /src/components/chatwindow.cpp
parentd0fa308f6e339b94044d39bf0e76b8221da48c3a (diff)
downloadabaddon-portaudio-4ee7025ab09b606a2556bf9f42c1218d7fd72843.tar.gz
abaddon-portaudio-4ee7025ab09b606a2556bf9f42c1218d7fd72843.zip
add file upload via dnd + rework http
Diffstat (limited to 'src/components/chatwindow.cpp')
-rw-r--r--src/components/chatwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/chatwindow.cpp b/src/components/chatwindow.cpp
index 3e1885b..d9d490b 100644
--- a/src/components/chatwindow.cpp
+++ b/src/components/chatwindow.cpp
@@ -170,6 +170,10 @@ void ChatWindow::SetTopic(const std::string &text) {
m_topic.set_visible(text.length() > 0);
}
+void ChatWindow::AddAttachment(const Glib::RefPtr<Gio::File> &file) {
+ m_input->AddAttachment(file);
+}
+
#ifdef WITH_LIBHANDY
void ChatWindow::OpenNewTab(Snowflake id) {
// open if its the first tab (in which case it really isnt a tab but whatever)