mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 04:25:18 +00:00
Fix build
This commit is contained in:
parent
57825d58b5
commit
bb180ff2d5
@ -2150,7 +2150,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
// Loki - Always send friend requests if we're not friends with the user
|
||||
int friendRequestStatus = DatabaseFactory.getThreadDatabase(context).getFriendRequestStatus(threadId);
|
||||
message.setIsFriendRequest(friendRequestStatus != ThreadDatabase.LokiFriendRequestStatus.FRIENDS);
|
||||
message.isFriendRequest = (friendRequestStatus != ThreadDatabase.LokiFriendRequestStatus.FRIENDS);
|
||||
}
|
||||
|
||||
Permissions.with(this)
|
||||
|
@ -643,7 +643,7 @@ public class SmsDatabase extends MessagingDatabase {
|
||||
contentValues.put(EXPIRES_IN, message.getExpiresIn());
|
||||
contentValues.put(DELIVERY_RECEIPT_COUNT, Stream.of(earlyDeliveryReceipts.values()).mapToLong(Long::longValue).sum());
|
||||
contentValues.put(READ_RECEIPT_COUNT, Stream.of(earlyReadReceipts.values()).mapToLong(Long::longValue).sum());
|
||||
contentValues.put(IS_FRIEND_REQUEST, message.isFriendRequest() ? 1 : 0);
|
||||
contentValues.put(IS_FRIEND_REQUEST, message.isFriendRequest ? 1 : 0);
|
||||
|
||||
SQLiteDatabase db = databaseHelper.getWritableDatabase();
|
||||
long messageId = db.insert(TABLE_NAME, ADDRESS, contentValues);
|
||||
|
@ -9,7 +9,7 @@ public class OutgoingTextMessage {
|
||||
private final String message;
|
||||
private final int subscriptionId;
|
||||
private final long expiresIn;
|
||||
boolean isFriendRequest = false;
|
||||
public boolean isFriendRequest = false;
|
||||
|
||||
public OutgoingTextMessage(Recipient recipient, String message, int subscriptionId) {
|
||||
this(recipient, message, 0, subscriptionId);
|
||||
|
Loading…
Reference in New Issue
Block a user