]> Sergey Matveev's repositories - vors.git/blobdiff - cmd/client/stats.go
Notification about peer mute toggling
[vors.git] / cmd / client / stats.go
index 3e29d701469d9047b130ee6caa3f6c5475214d67237a998b6bb315d58bcae065..30a490a74c405902ef4bb144f578c20d27c9daa2253ebb8c33c5d0afd1021a78 100644 (file)
@@ -36,6 +36,7 @@ type Stats struct {
        last    time.Time
        vol     uint64
        volN    uint64
+       muted   bool
        dead    chan struct{}
 }
 
@@ -74,6 +75,9 @@ func statsDrawer(stats *Stats, name string) {
                        if name == *Name && Muted {
                                s += "  |  " + vors.CRed + "MUTE" + vors.CReset
                        } else {
+                               if stats.muted {
+                                       s += "  |  " + vors.CRed + "MUTE" + vors.CReset
+                               }
                                if stats.last.Add(vors.ScreenRefresh).After(now) {
                                        s += "  |  " + vors.CGreen + "TALK" + vors.CReset
                                }