forked from mirrors/linphone-iphone
feat(MainDb): fetch ConferenceParticipantDeviceEvent => OK
This commit is contained in:
parent
be18e569fc
commit
fea02c354c
1 changed files with 21 additions and 2 deletions
|
|
@ -312,8 +312,27 @@ MainDb::MainDb () : AbstractDb(*new MainDbPrivate) {}
|
|||
time_t date,
|
||||
const string &peerAddress
|
||||
) const {
|
||||
// TODO.
|
||||
return nullptr;
|
||||
unsigned int notifyId;
|
||||
string participantAddress;
|
||||
string gruuAddress;
|
||||
|
||||
soci::session *session = dbSession.getBackendSession<soci::session>();
|
||||
*session << "SELECT notify_id, participant_address_id, gruu_address_id"
|
||||
" FROM conference_notified_event, conference_participant_event, conference_participant_device_event"
|
||||
" WHERE conference_participant_device_event.event_id = :eventId"
|
||||
" AND conference_participant_event.event_id = conference_participant_device_event.event_id"
|
||||
" AND conference_notified_event.event_id = conference_participant_event.event_id",
|
||||
soci::into(notifyId), soci::into(participantAddress), soci::into(gruuAddress), soci::use(eventId);
|
||||
|
||||
// TODO: Use cache.
|
||||
return make_shared<ConferenceParticipantDeviceEvent>(
|
||||
type,
|
||||
date,
|
||||
Address(peerAddress),
|
||||
notifyId,
|
||||
Address(participantAddress),
|
||||
Address(gruuAddress)
|
||||
);
|
||||
}
|
||||
|
||||
shared_ptr<EventLog> MainDbPrivate::selectConferenceSubjectEvent (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue