3
0

Fix unread recording, remove dump leftovers

This commit is contained in:
Denis Arh
2018-10-26 10:37:53 +02:00
parent a5872e1655
commit 828e0d819b
3 changed files with 2 additions and 3 deletions
-2
View File
@@ -11,7 +11,6 @@ import (
"path"
"strings"
"github.com/davecgh/go-spew/spew"
"github.com/disintegration/imaging"
"github.com/edwvee/exiffix"
"github.com/pkg/errors"
@@ -297,7 +296,6 @@ func (svc *attachment) sendEvent(msg *types.Message) (err error) {
}
}
spew.Dump(msg)
return svc.evl.Message(msg)
}
+1 -1
View File
@@ -702,7 +702,7 @@ func (svc *channel) DeleteMember(channelID uint64, memberIDs ...uint64) (err err
})
}
func (svc *channel) RecordView(channelID, userID, lastMessageID uint64) error {
func (svc *channel) RecordView(userID, channelID, lastMessageID uint64) error {
return svc.db.Transaction(func() (err error) {
return svc.cview.Record(userID, channelID, lastMessageID, 0)
})
+1
View File
@@ -8,6 +8,7 @@ import (
"github.com/titpetric/factory"
authService "github.com/crusttech/crust/auth/service"
authTypes "github.com/crusttech/crust/auth/types"
"github.com/crusttech/crust/sam/repository"
"github.com/crusttech/crust/sam/types"