aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/message-view.go2
-rw-r--r--ui/room-list.go4
-rw-r--r--ui/view-main.go3
3 files changed, 6 insertions, 3 deletions
diff --git a/ui/message-view.go b/ui/message-view.go
index 43c757f..75cd022 100644
--- a/ui/message-view.go
+++ b/ui/message-view.go
@@ -20,10 +20,10 @@ import (
"fmt"
"math"
"strings"
- "sync"
"sync/atomic"
"github.com/mattn/go-runewidth"
+ sync "github.com/sasha-s/go-deadlock"
"maunium.net/go/mauview"
"maunium.net/go/tcell"
diff --git a/ui/room-list.go b/ui/room-list.go
index 47ac182..0dc3e74 100644
--- a/ui/room-list.go
+++ b/ui/room-list.go
@@ -20,7 +20,8 @@ import (
"math"
"regexp"
"strings"
- "sync"
+
+ sync "github.com/sasha-s/go-deadlock"
"maunium.net/go/mauview"
"maunium.net/go/tcell"
@@ -483,6 +484,7 @@ func (list *RoomList) clickRoom(line, column int, mod bool) bool {
}
return false
}
+
var nsRegex = regexp.MustCompile("^[a-z]\\.[a-z](?:\\.[a-z])*$")
func (list *RoomList) GetTagDisplayName(tag string) string {
diff --git a/ui/view-main.go b/ui/view-main.go
index 2d2afdf..48004c1 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -20,11 +20,12 @@ import (
"bufio"
"fmt"
"os"
- "sync"
"sync/atomic"
"time"
"unicode"
+ sync "github.com/sasha-s/go-deadlock"
+
"maunium.net/go/mauview"
"maunium.net/go/tcell"