Fix pending rotation pivot point.

This commit is contained in:
Alex Hart
2023-07-07 10:29:04 -03:00
committed by Clark Chen
parent 4b6c308ae9
commit 3a7cde9239
2 changed files with 6 additions and 3 deletions

View File

@@ -63,6 +63,10 @@ class ConversationElementGenerator {
return MessageTypes.BASE_SENT_FAILED_TYPE or MessageTypes.SECURE_MESSAGE_BIT
}
private fun getPendingOutgoingType(): Long {
return MessageTypes.BASE_OUTBOX_TYPE or MessageTypes.SECURE_MESSAGE_BIT
}
private fun generateMessage(key: ConversationElementKey): MappingModel<*> {
val messageId = key.requireMessageId()
val now = getNow()
@@ -86,7 +90,7 @@ class ConversationElementGenerator {
1,
testMessage,
SlideDeck(),
if (isIncoming) getIncomingType() else getSentOutgoingType(),
if (isIncoming) getIncomingType() else getPendingOutgoingType(),
emptySet(),
emptySet(),
0,

View File

@@ -19,7 +19,6 @@ import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.res.imageResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.IntRect
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.dp
import org.thoughtcrime.securesms.R
@@ -148,4 +147,4 @@ private data class Circle(
val diff = center - position
return diff.x * diff.x + diff.y * diff.y < radius * radius
}
}
}