aboutsummaryrefslogtreecommitdiff
path: root/process.go
diff options
context:
space:
mode:
Diffstat (limited to 'process.go')
-rw-r--r--process.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/process.go b/process.go
index 60f4f1a..806dacd 100644
--- a/process.go
+++ b/process.go
@@ -441,6 +441,10 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
if _, ok := cmd.Pointed.(*mt.PointedAO); ok {
srv.swapAOID(&cmd.Pointed.(*mt.PointedAO).ID)
}
+
+ if handleInteraction(cmd, cc) { // if return true: already handled
+ return
+ }
case *mt.ToSrvChatMsg:
done := make(chan struct{})
@@ -736,6 +740,8 @@ func (sc *ServerConn) process(pkt mt.Pkt) {
return
case *mt.ToCltMediaPush:
+ prepend(sc.mediaPool, &cmd.Filename)
+
var exit bool
for _, f := range clt.media {
if f.name == cmd.Filename {
@@ -748,7 +754,6 @@ func (sc *ServerConn) process(pkt mt.Pkt) {
break
}
- prepend(sc.mediaPool, &cmd.Filename)
if cmd.ShouldCache {
cacheMedia(mediaFile{
name: cmd.Filename,