mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1144
This commit is contained in:
parent
7af1f20223
commit
17cd831319
2 changed files with 19 additions and 3 deletions
|
|
@ -104,7 +104,7 @@ func (client *Client) AddSession(session *Session) (success bool, numSessions in
|
|||
newSessions := make([]*Session, len(client.sessions)+1)
|
||||
copy(newSessions, client.sessions)
|
||||
newSessions[len(newSessions)-1] = session
|
||||
if client.accountSettings.AutoreplayMissed {
|
||||
if client.accountSettings.AutoreplayMissed || session.deviceID != "" {
|
||||
lastSeen = client.lastSeen[session.deviceID]
|
||||
}
|
||||
client.sessions = newSessions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue