Adjust private chat synchronization settings
This commit is contained in:
parent
591fb34f1c
commit
04b043426e
|
@ -247,6 +247,9 @@ func (handler *CommandHandler) CommandLogin(ce *CommandEvent) {
|
||||||
|
|
||||||
const cmdLogoutHelp = `logout - Logout from Skype`
|
const cmdLogoutHelp = `logout - Logout from Skype`
|
||||||
func (handler *CommandHandler) CommandLogout(ce *CommandEvent) {
|
func (handler *CommandHandler) CommandLogout(ce *CommandEvent) {
|
||||||
|
if ce.User.Conn == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
//ce.User.Conn.Conn.LogoutChan <- 1
|
//ce.User.Conn.Conn.LogoutChan <- 1
|
||||||
ce.User.Conn.LoggedIn = false
|
ce.User.Conn.LoggedIn = false
|
||||||
ce.User.Conn.LoginInfo = &skype.Session{
|
ce.User.Conn.LoginInfo = &skype.Session{
|
||||||
|
|
|
@ -142,7 +142,7 @@ bridge:
|
||||||
# Whether or not to explicitly set the avatar and room name for private
|
# Whether or not to explicitly set the avatar and room name for private
|
||||||
# chat portal rooms. This can be useful if the previous field works fine,
|
# chat portal rooms. This can be useful if the previous field works fine,
|
||||||
# but causes room avatar/name bugs.
|
# but causes room avatar/name bugs.
|
||||||
private_chat_portal_meta: false
|
private_chat_portal_meta: true
|
||||||
|
|
||||||
# Whether or not thumbnails from Skype should be sent.
|
# Whether or not thumbnails from Skype should be sent.
|
||||||
# They're disabled by default due to very low resolution.
|
# They're disabled by default due to very low resolution.
|
||||||
|
|
|
@ -360,7 +360,7 @@ func (portal *Portal) handlePrivateChatFromMe(fromMe bool) func() {
|
||||||
|
|
||||||
return func() {
|
return func() {
|
||||||
if privateChatPuppet != nil && privateChatPuppetInvited {
|
if privateChatPuppet != nil && privateChatPuppetInvited {
|
||||||
_, _ = privateChatPuppet.DefaultIntent().LeaveRoom(portal.MXID)
|
//_, _ = privateChatPuppet.DefaultIntent().LeaveRoom(portal.MXID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -908,7 +908,7 @@ func (portal *Portal) beginBackfill() func() {
|
||||||
portal.privateChatBackfillInvitePuppet = nil
|
portal.privateChatBackfillInvitePuppet = nil
|
||||||
portal.backfillLock.Unlock()
|
portal.backfillLock.Unlock()
|
||||||
if privateChatPuppet != nil && privateChatPuppetInvited {
|
if privateChatPuppet != nil && privateChatPuppetInvited {
|
||||||
_, _ = privateChatPuppet.DefaultIntent().LeaveRoom(portal.MXID)
|
//_, _ = privateChatPuppet.DefaultIntent().LeaveRoom(portal.MXID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue