Rewrite and refactor #1
3
simp.go
3
simp.go
@ -61,11 +61,10 @@ func (s *simp) Run() {
|
||||
"dimension-m.video-simp-"+v.Name,
|
||||
&content,
|
||||
)
|
||||
update := true
|
||||
if err != nil {
|
||||
log.Errorf("error getting state event in room %v: %v", room, err)
|
||||
}
|
||||
if update {
|
||||
if content.ID == "" {
|
||||
if v.AnnounceLive {
|
||||
s.client.SendText(room, v.LiveMsg)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user