mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 09:03:10 +01:00
Merge pull request #12 from krombel/fixUserManagementRoom
parse management room from database as well
This commit is contained in:
commit
4e03361df6
1 changed files with 2 additions and 2 deletions
|
@ -93,9 +93,9 @@ type User struct {
|
|||
}
|
||||
|
||||
func (user *User) Scan(row Scannable) *User {
|
||||
var managementRoom, clientID, clientToken, serverToken, jid sql.NullString
|
||||
var jid, clientID, clientToken, serverToken sql.NullString
|
||||
var encKey, macKey []byte
|
||||
err := row.Scan(&user.MXID, &jid, &managementRoom, &clientID, &clientToken, &serverToken, &encKey, &macKey)
|
||||
err := row.Scan(&user.MXID, &jid, &user.ManagementRoom, &clientID, &clientToken, &serverToken, &encKey, &macKey)
|
||||
if err != nil {
|
||||
if err != sql.ErrNoRows {
|
||||
user.log.Errorln("Database scan failed:", err)
|
||||
|
|
Loading…
Reference in a new issue