mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix method name
This commit is contained in:
parent
c82d324a83
commit
3614c6f1f6
2 changed files with 2 additions and 2 deletions
|
|
@ -1677,7 +1677,7 @@ func (channel *Channel) auditoriumFriends(client *Client) (friends []*Client) {
|
|||
return
|
||||
}
|
||||
|
||||
func (channel *Channel) sessionsWithCap(capabs ...caps.Capability) iter.Seq[*Session] {
|
||||
func (channel *Channel) sessionsWithCaps(capabs ...caps.Capability) iter.Seq[*Session] {
|
||||
return func(yield func(*Session) bool) {
|
||||
for _, member := range channel.Members() {
|
||||
for _, sess := range member.Sessions() {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ func notifySubscribers(server *Server, session *Session, targetObj MetadataHaver
|
|||
}
|
||||
recipientSessions = maps.Keys(friends)
|
||||
case *Channel:
|
||||
recipientSessions = target.sessionsWithCap(caps.Metadata)
|
||||
recipientSessions = target.sessionsWithCaps(caps.Metadata)
|
||||
default:
|
||||
return // impossible
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue