Adjust private chat synchronization settings

This commit is contained in:
zhaoYangguang 2020-11-04 14:55:06 +08:00
parent 591fb34f1c
commit 04b043426e
3 changed files with 6 additions and 3 deletions

View File

@ -247,6 +247,9 @@ func (handler *CommandHandler) CommandLogin(ce *CommandEvent) {
const cmdLogoutHelp = `logout - Logout from Skype`
func (handler *CommandHandler) CommandLogout(ce *CommandEvent) {
if ce.User.Conn == nil {
return
}
//ce.User.Conn.Conn.LogoutChan <- 1
ce.User.Conn.LoggedIn = false
ce.User.Conn.LoginInfo = &skype.Session{

View File

@ -142,7 +142,7 @@ bridge:
# 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,
# 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.
# They're disabled by default due to very low resolution.

View File

@ -360,7 +360,7 @@ func (portal *Portal) handlePrivateChatFromMe(fromMe bool) func() {
return func() {
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.backfillLock.Unlock()
if privateChatPuppet != nil && privateChatPuppetInvited {
_, _ = privateChatPuppet.DefaultIntent().LeaveRoom(portal.MXID)
//_, _ = privateChatPuppet.DefaultIntent().LeaveRoom(portal.MXID)
}
}
}