@ -7,6 +7,7 @@ import (
domainMessage "github.com/aldinokemal/go-whatsapp-web-multidevice/domains/message"
domainMessage "github.com/aldinokemal/go-whatsapp-web-multidevice/domains/message"
"github.com/aldinokemal/go-whatsapp-web-multidevice/pkg/whatsapp"
"github.com/aldinokemal/go-whatsapp-web-multidevice/pkg/whatsapp"
"github.com/aldinokemal/go-whatsapp-web-multidevice/validations"
"github.com/aldinokemal/go-whatsapp-web-multidevice/validations"
"github.com/sirupsen/logrus"
"go.mau.fi/whatsmeow"
"go.mau.fi/whatsmeow"
"go.mau.fi/whatsmeow/appstate"
"go.mau.fi/whatsmeow/appstate"
"go.mau.fi/whatsmeow/proto/waCommon"
"go.mau.fi/whatsmeow/proto/waCommon"
@ -41,6 +42,13 @@ func (service serviceMessage) MarkAsRead(ctx context.Context, request domainMess
return response , err
return response , err
}
}
logrus . Info ( map [ string ] interface { } {
"phone" : request . Phone ,
"message_id" : request . MessageID ,
"chat" : dataWaRecipient . String ( ) ,
"sender" : service . WaCli . Store . ID . String ( ) ,
} )
response . MessageID = request . MessageID
response . MessageID = request . MessageID
response . Status = fmt . Sprintf ( "Mark as read success %s" , request . MessageID )
response . Status = fmt . Sprintf ( "Mark as read success %s" , request . MessageID )
return response , nil
return response , nil