mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-13 05:39:18 +08:00
test cron
This commit is contained in:
parent
10d299d1b3
commit
be6811ddbd
@ -325,7 +325,7 @@ func (d *DataBases) GetNewestMsg(ID string) (msg *MsgInfo, err error) {
|
||||
}
|
||||
if len(userChats) > 0 {
|
||||
if len(userChats[0].Msg) > 0 {
|
||||
return &userChats[0].Msg[len(userChats[0].Msg)], nil
|
||||
return &userChats[0].Msg[len(userChats[0].Msg)-1], nil
|
||||
}
|
||||
return nil, errors.New("len(userChats[0].Msg) < 0")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user