New Cwtch Group API #34

Merged
erinn merged 3 commits from groups into trunk 2021-05-05 22:21:58 +00:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit c2e3488a45 - Show all commits

7
lib.go
View File

@ -1,6 +1,6 @@
//package cwtch
package cwtch
package main
//package main
import "C"
import (
@ -507,7 +507,6 @@ func SendMessage(profileOnion, handle, msg string) {
if ph.IsGroup(handle) {
groupHandler, err := groups.ExperimentGate(utils.ReadGlobalSettings().Experiments)
if err == nil {
log.Debugf("Group Sending Enabled... Sending message to %v", handle)
groupHandler.SendMessage(profile, handle, msg)
}
} else {
@ -587,4 +586,4 @@ func SetGroupAttribute(profileOnion string, groupHandle string, key string, valu
}
// Leave as is, needed by ffi
func main() {}
//func main() {}