mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Renamed database classes to table classes.
Because they're not databases. They're tables.
This commit is contained in:
committed by
Cody Henthorne
parent
b190f9495a
commit
7949996c5c
@@ -22,8 +22,8 @@ import org.signal.storageservice.protos.groups.local.DecryptedGroupJoinInfo;
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.attachments.Attachment;
|
||||
import org.thoughtcrime.securesms.attachments.UriAttachment;
|
||||
import org.thoughtcrime.securesms.database.AttachmentDatabase;
|
||||
import org.thoughtcrime.securesms.database.GroupDatabase;
|
||||
import org.thoughtcrime.securesms.database.AttachmentTable;
|
||||
import org.thoughtcrime.securesms.database.GroupTable;
|
||||
import org.thoughtcrime.securesms.database.SignalDatabase;
|
||||
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies;
|
||||
import org.thoughtcrime.securesms.groups.GroupId;
|
||||
@@ -282,14 +282,14 @@ public class LinkPreviewRepository {
|
||||
}
|
||||
|
||||
GroupMasterKey groupMasterKey = groupInviteLinkUrl.getGroupMasterKey();
|
||||
GroupId.V2 groupId = GroupId.v2(groupMasterKey);
|
||||
Optional<GroupDatabase.GroupRecord> group = SignalDatabase.groups().getGroup(groupId);
|
||||
GroupId.V2 groupId = GroupId.v2(groupMasterKey);
|
||||
Optional<GroupTable.GroupRecord> group = SignalDatabase.groups().getGroup(groupId);
|
||||
|
||||
if (group.isPresent()) {
|
||||
Log.i(TAG, "Creating preview for locally available group");
|
||||
|
||||
GroupDatabase.GroupRecord groupRecord = group.get();
|
||||
String title = groupRecord.getTitle();
|
||||
GroupTable.GroupRecord groupRecord = group.get();
|
||||
String title = groupRecord.getTitle();
|
||||
int memberCount = groupRecord.getMembers().size();
|
||||
String description = getMemberCountDescription(context, memberCount);
|
||||
Optional<Attachment> thumbnail = Optional.empty();
|
||||
@@ -367,7 +367,7 @@ public class LinkPreviewRepository {
|
||||
|
||||
return new UriAttachment(uri,
|
||||
contentType,
|
||||
AttachmentDatabase.TRANSFER_PROGRESS_STARTED,
|
||||
AttachmentTable.TRANSFER_PROGRESS_STARTED,
|
||||
bytes.length,
|
||||
width,
|
||||
height,
|
||||
|
||||
Reference in New Issue
Block a user