mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-04 07:25:16 +00:00
24fc93e9ae
1) There is no longer a concept of "verified" or "unverified." Only "what we saw last time" and "different from last time." 2) Let's eliminate "verify session," since we're all about identity keys now. 3) Mark manually processed key exchanges as processed.
27 lines
735 B
Java
27 lines
735 B
Java
package org.thoughtcrime.securesms.database.loaders;
|
|
|
|
import android.content.Context;
|
|
import android.database.Cursor;
|
|
import android.support.v4.content.AsyncTaskLoader;
|
|
import android.support.v4.content.CursorLoader;
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
|
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
|
import org.thoughtcrime.securesms.database.IdentityDatabase;
|
|
|
|
public class IdentityLoader extends CursorLoader {
|
|
|
|
private final Context context;
|
|
|
|
public IdentityLoader(Context context) {
|
|
super(context);
|
|
this.context = context.getApplicationContext();
|
|
}
|
|
|
|
@Override
|
|
public Cursor loadInBackground() {
|
|
return DatabaseFactory.getIdentityDatabase(context).getIdentities();
|
|
}
|
|
|
|
}
|