package helpers import ( "forge.redroom.link/yves/meowlib/client" ) func LoadMessagesHistory(peer_uid string) ([]client.InternalUserMessage, string, error) { id := client.GetConfig().GetIdentity() peer := id.Peers.GetFromUid(peer_uid) msgs, err := peer.LoadMessagesHistory(0, 0, 50) if err != nil { return nil, "LoadLastMessages: LoadMessagesHistory", err } return msgs, "", nil }