use messages buffor in channels
This commit is contained in:
@@ -301,13 +301,14 @@ func HandleHubMessage(response http.ResponseWriter, request *http.Request) {
|
|||||||
Receiver: channel.Id,
|
Receiver: channel.Id,
|
||||||
CreatedAt: time.Now(),
|
CreatedAt: time.Now(),
|
||||||
}
|
}
|
||||||
|
channel.AddMessageToBuff(msg)
|
||||||
|
|
||||||
for permId, perm := range perms {
|
for permId, perm := range perms {
|
||||||
if !perm.CanReadHistory() {
|
if !perm.CanReadHistory() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
target, err := cache.GetUserById(permId)
|
target, err = cache.GetUserById(permId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user