From 80822b7fff85647ad5852b00ec36d046959aed92 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 3 Feb 2018 01:11:11 +0100 Subject: Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 --- bridge/config/config.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'bridge/config') diff --git a/bridge/config/config.go b/bridge/config/config.go index fdb6e55c..91e2b4b9 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -10,12 +10,13 @@ import ( ) const ( - EVENT_JOIN_LEAVE = "join_leave" - EVENT_TOPIC_CHANGE = "topic_change" - EVENT_FAILURE = "failure" - EVENT_REJOIN_CHANNELS = "rejoin_channels" - EVENT_USER_ACTION = "user_action" - EVENT_MSG_DELETE = "msg_delete" + EVENT_JOIN_LEAVE = "join_leave" + EVENT_TOPIC_CHANGE = "topic_change" + EVENT_FAILURE = "failure" + EVENT_FILE_FAILURE_SIZE = "file_failure_size" + EVENT_REJOIN_CHANNELS = "rejoin_channels" + EVENT_USER_ACTION = "user_action" + EVENT_MSG_DELETE = "msg_delete" ) type Message struct { @@ -38,6 +39,7 @@ type FileInfo struct { Data *[]byte Comment string URL string + Size int64 } type ChannelInfo struct { -- cgit v1.2.3