Skip to content

Commit

Permalink
Fix IsLoggedIn check
Browse files Browse the repository at this point in the history
Should fix the event handler panic when handling typing notifications
  • Loading branch information
tulir committed Dec 26, 2023
1 parent ed4c7c9 commit 2dbc42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (user *User) IsLoggedIn() bool {
user.Lock()
defer user.Unlock()

return user.SignalUsername != ""
return user.SignalDevice.IsDeviceLoggedIn()
}

func (user *User) GetManagementRoomID() id.RoomID {
Expand Down

0 comments on commit 2dbc42d

Please sign in to comment.