summaryrefslogtreecommitdiffstats
path: root/gateway/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/router.go')
-rw-r--r--gateway/router.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gateway/router.go b/gateway/router.go
index 56573f74..b07e5781 100644
--- a/gateway/router.go
+++ b/gateway/router.go
@@ -132,6 +132,9 @@ func (r *Router) handleReceive() {
r.handleEventFailure(&msg)
r.handleEventRejoinChannels(&msg)
+ // Set message protocol based on the account it came from
+ msg.Protocol = r.getBridge(msg.Account).Protocol
+
filesHandled := false
for _, gw := range r.Gateways {
// record all the message ID's of the different bridges