aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/view-login.go2
-rw-r--r--ui/view-main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/view-login.go b/ui/view-login.go
index c46ad25..4ae673c 100644
--- a/ui/view-login.go
+++ b/ui/view-login.go
@@ -29,7 +29,7 @@ func (ui *GomuksUI) NewLoginView() tview.Primitive {
}
homeserver := widget.NewAdvancedInputField().SetLabel("Homeserver").SetText(hs).SetFieldWidth(30)
- username := widget.NewAdvancedInputField().SetLabel("Username").SetText(ui.gmx.Config().MXID).SetFieldWidth(30)
+ username := widget.NewAdvancedInputField().SetLabel("Username").SetText(ui.gmx.Config().UserID).SetFieldWidth(30)
password := widget.NewAdvancedInputField().SetLabel("Password").SetMaskCharacter('*').SetFieldWidth(30)
ui.loginView = tview.NewForm()
diff --git a/ui/view-main.go b/ui/view-main.go
index e694d9c..8ff925c 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -418,7 +418,7 @@ func (view *MainView) processOwnMembershipChange(evt *gomatrix.Event) {
}
func (view *MainView) ProcessMembershipEvent(evt *gomatrix.Event, new bool) (room *widget.RoomView, message *types.Message) {
- if new && evt.StateKey != nil && *evt.StateKey == view.config.Session.MXID {
+ if new && evt.StateKey != nil && *evt.StateKey == view.config.Session.UserID {
view.processOwnMembershipChange(evt)
}