From 9fd67102ad2cca16c092e23ffd928b77ab08d7e0 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 21 Mar 2018 23:29:58 +0200 Subject: Refactoring and godocs --- ui/view-main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/view-main.go') 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) } -- cgit v1.2.3