@@ -436,7 +436,7 @@ func (bb *blueBubbles) queryChatMessages(query MessageQueryRequest, allResults [
436
436
func (bb * blueBubbles ) GetMessagesSinceDate (chatID string , minDate time.Time , backfillID string ) (resp []* imessage.Message , err error ) {
437
437
bb .log .Trace ().Str ("chatID" , chatID ).Time ("minDate" , minDate ).Str ("backfillID" , backfillID ).Msg ("GetMessagesSinceDate" )
438
438
439
- after := minDate .Unix ( )
439
+ after := minDate .UnixNano () / int64 ( time . Millisecond )
440
440
request := MessageQueryRequest {
441
441
ChatGUID : chatID ,
442
442
Limit : 100 ,
@@ -475,8 +475,8 @@ func (bb *blueBubbles) GetMessagesSinceDate(chatID string, minDate time.Time, ba
475
475
func (bb * blueBubbles ) GetMessagesBetween (chatID string , minDate , maxDate time.Time ) (resp []* imessage.Message , err error ) {
476
476
bb .log .Trace ().Str ("chatID" , chatID ).Time ("minDate" , minDate ).Time ("maxDate" , maxDate ).Msg ("GetMessagesBetween" )
477
477
478
- after := minDate .Unix ( )
479
- before := maxDate .Unix ( )
478
+ after := minDate .UnixNano () / int64 ( time . Millisecond )
479
+ before := maxDate .UnixNano () / int64 ( time . Millisecond )
480
480
request := MessageQueryRequest {
481
481
ChatGUID : chatID ,
482
482
Limit : 100 ,
@@ -516,7 +516,7 @@ func (bb *blueBubbles) GetMessagesBetween(chatID string, minDate, maxDate time.T
516
516
func (bb * blueBubbles ) GetMessagesBeforeWithLimit (chatID string , before time.Time , limit int ) (resp []* imessage.Message , err error ) {
517
517
bb .log .Trace ().Str ("chatID" , chatID ).Time ("before" , before ).Int ("limit" , limit ).Msg ("GetMessagesBeforeWithLimit" )
518
518
519
- _before := before .Unix ( )
519
+ _before := before .UnixNano () / int64 ( time . Millisecond )
520
520
request := MessageQueryRequest {
521
521
ChatGUID : chatID ,
522
522
Limit : int64 (limit ),
0 commit comments