Skip to content

Commit

Permalink
Hotfix for crashing communication module
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablosanqt committed Oct 16, 2024
1 parent dd4b99a commit 5a185d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
Expand Down Expand Up @@ -78,7 +79,7 @@ internal fun PostContextBottomSheet(
Column(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = Spacings.ScreenHorizontalSpacing)
.padding(start = Spacings.ScreenHorizontalSpacing, end = Spacings.ScreenHorizontalSpacing, bottom = 40.dp)
) {
postActions.onClickReaction?.let { onClickReaction ->
EmojiReactionBar(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import androidx.room.Index
*/
@Entity(
tableName = "metis_post_context",
primaryKeys = ["client_post_id", "course_id", "conversation_id", "type"],
primaryKeys = ["client_post_id", "course_id", "conversation_id", "type", "server_id"],
foreignKeys = [
ForeignKey(
entity = BasePostingEntity::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,7 @@ import androidx.room.Index

@Entity(
tableName = "reactions",
primaryKeys = ["post_id", "emoji", "author_id"],
foreignKeys = [
ForeignKey(
entity = BasePostingEntity::class,
parentColumns = ["id"],
childColumns = ["post_id"],
onDelete = ForeignKey.CASCADE
),
ForeignKey(
entity = MetisUserEntity::class,
parentColumns = ["server_id", "id"],
childColumns = ["server_id", "author_id"]
)
],
primaryKeys = ["post_id", "emoji", "author_id", "server_id"],
indices = [Index("server_id", "author_id", name = "server_id_author_id_index")]
)
data class PostReactionEntity(
Expand Down

0 comments on commit 5a185d5

Please sign in to comment.