Functions renaming
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2026-02-25 20:24:04 +01:00
parent c784f6f315
commit e6aa919b74
4 changed files with 14 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ import (
"forge.redroom.link/yves/meowlib/client"
)
func messageBuildPostprocess(msg *meowlib.UserMessage, srvuid string, peer *client.Peer) ([]byte, string, error) {
func messageBuildPackAndStore(msg *meowlib.UserMessage, srvuid string, peer *client.Peer) ([]byte, string, error) {
// Get the message server
srv, err := client.GetConfig().GetIdentity().MessageServers.LoadServer(srvuid)
if err != nil {
@@ -30,7 +30,7 @@ func messageBuildPostprocess(msg *meowlib.UserMessage, srvuid string, peer *clie
return data, "", nil
}
func PrepareUserMessage(message string, srvuid string, peer_uid string, replyToUid string, filelist []string) ([]byte, string, error) {
func CreateUserMessage(message string, srvuid string, peer_uid string, replyToUid string, filelist []string) ([]byte, string, error) {
peer := client.GetConfig().GetIdentity().Peers.GetFromUid(peer_uid)
@@ -47,7 +47,7 @@ func PrepareUserMessage(message string, srvuid string, peer_uid string, replyToU
}
usermessage.Status.AnswerToUuid = replyToUid
return messageBuildPostprocess(usermessage, srvuid, peer)
return messageBuildPackAndStore(usermessage, srvuid, peer)
}