sort memberList
for better dedup
This commit is contained in:
parent
2007c73295
commit
1b6077e49d
@ -2,6 +2,7 @@ package roomstate
|
||||
|
||||
import (
|
||||
"context"
|
||||
"sort"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -73,6 +74,7 @@ func (rsm roomStateMap) AsList() []string {
|
||||
for m := range rsm {
|
||||
memberList = append(memberList, m)
|
||||
}
|
||||
sort.Strings(memberList)
|
||||
return memberList
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user