On Thu, Jun 18, 2015 at 8:59 PM, Pali Rohár <pali.ro...@gmail.com> wrote:
> > > > > I intended for the account field to be protocol > > dependant, as you had said earlier, so that jabber can store full > > JID. > > > > But then you cannot show history! You will get Kopete::Acount::accountId > and you cannot match anything in database against accountId if you store > protocol dependent string into database... This is no go way. > > You will select Kopete::Contact object, from it you will ask for > contactId() and this information you will use for searching for history > messages in database. If you do not store contactId() into database how > other you want to search for history which belongs to particular > Kopete::Contact object? > I get it now. We will have to store the contactId() also. I will need to get good column names to avoid confusion with the foreign key columns. > > -- > Pali Rohár > pali.ro...@gmail.com > > _______________________________________________ > kopete-devel mailing list > kopete-devel@kde.org > https://mail.kde.org/mailman/listinfo/kopete-devel > > -- Thanks, Joshua
_______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel