Rewrite and refactor #1

Merged
stryan merged 6 commits from rewrite into master 2023-05-16 18:36:19 -04:00
Showing only changes of commit aa3c366f71 - Show all commits

View File

@ -61,11 +61,10 @@ func (s *simp) Run() {
"dimension-m.video-simp-"+v.Name, "dimension-m.video-simp-"+v.Name,
&content, &content,
) )
update := true
if err != nil { if err != nil {
log.Errorf("error getting state event in room %v: %v", room, err) log.Errorf("error getting state event in room %v: %v", room, err)
} }
if update { if content.ID == "" {
if v.AnnounceLive { if v.AnnounceLive {
s.client.SendText(room, v.LiveMsg) s.client.SendText(room, v.LiveMsg)
} else { } else {