1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Add new field in conversation members table to ease database access

This commit is contained in:
2021-03-05 17:07:39 +01:00
parent fd6970f6fe
commit dc93d58d6b
6 changed files with 19 additions and 8 deletions

View File

@ -11,6 +11,7 @@ use crate::helpers::calls_helper;
struct ConversationMembersAPI {
user_id: u64,
last_message_seen: u64,
last_access: u64,
following: bool,
is_admin: bool,
}
@ -37,6 +38,7 @@ impl ConversationMembersAPI {
last_message_seen: m.last_message_seen,
following: m.following,
is_admin: m.is_admin,
last_access: m.last_access,
}
}
}