fix http group sending

This commit is contained in:
gitGnome
2026-03-30 14:46:31 +02:00
parent fcb936027e
commit 551b213c49
7 changed files with 58 additions and 45 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ func WsSendToGroup(ctx context.Context, groupId uint32, senderId uint32, message
}
client, err := CacheGetClientById(senderId)
if err == nil {
if err != nil {
client = &Client{Id: senderId}
err = DbSetClientById(ctx, client)
if err != nil {
return errors.New("non existing sender")