Fix reply keyboard on own posts

This commit is contained in:
Ali 2023-07-01 09:48:31 +02:00
parent f3067392d9
commit 5fe4210c97

View File

@ -983,7 +983,9 @@ public final class StoryItemSetContainerComponent: Component {
}
} else {
var canReply = true
if component.slice.peer.isService {
if component.slice.peer.id == component.context.account.peerId {
canReply = false
} else if component.slice.peer.isService {
canReply = false
} else if case .unsupported = component.slice.item.storyItem.media {
canReply = false
@ -1005,7 +1007,9 @@ public final class StoryItemSetContainerComponent: Component {
}
var canReply = true
if component.slice.peer.isService {
if component.slice.peer.id == component.context.account.peerId {
canReply = false
} else if component.slice.peer.isService {
canReply = false
} else if case .unsupported = component.slice.item.storyItem.media {
canReply = false