summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbcrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcrypt.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbcrypt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp
index fcd4fd2017..48731212d7 100644
--- a/plugins/Db3x_mmap/src/dbcrypt.cpp
+++ b/plugins/Db3x_mmap/src/dbcrypt.cpp
@@ -411,8 +411,8 @@ void CDb3Mmap::ToggleEventsEncryption(MCONTACT contactID)
contact.ofsFirstEvent = ofsDest;
if (contact.ofsLastEvent == offset)
contact.ofsLastEvent = ofsDest;
- if (contact.ofsFirstUnreadEvent == offset)
- contact.ofsFirstUnreadEvent = ofsDest;
+ if (contact.ofsFirstUnread == offset)
+ contact.ofsFirstUnread = ofsDest;
evt.flags |= DBEF_ENCRYPTED;
}