fix http group sending
This commit is contained in:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user