Added commenting
This commit is contained in:
parent
a98243c194
commit
d08c31a4e6
@ -109,6 +109,8 @@ func (s *Session) ArchiveMessages(ids []string) error {
|
|||||||
return fmt.Errorf("ID list was empty")
|
return fmt.Errorf("ID list was empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We do this because when we turn it to json it will look like [1,2,3]
|
||||||
|
// and not ["1","2","3"]
|
||||||
var newList []int
|
var newList []int
|
||||||
for i := 0; i < len(ids); i++ {
|
for i := 0; i < len(ids); i++ {
|
||||||
idString, err := strconv.Atoi(ids[i])
|
idString, err := strconv.Atoi(ids[i])
|
||||||
|
Loading…
Reference in New Issue
Block a user