Skip to content

Commit

Permalink
Remove forward action for polls (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfogrillo authored Oct 27, 2023
1 parent a837ce5 commit 5439b65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
}
}

if item.isRemoteMessage {
if item.isForwardable {
actions.append(.forward(itemID: itemID))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ extension EventBasedTimelineItemProtocol {
var description: String {
"\(String(describing: Self.self)): id: \(id), timestamp: \(timestamp), isOutgoing: \(isOutgoing), properties: \(properties)"
}


var isForwardable: Bool {
isRemoteMessage && !(self is PollRoomTimelineItem)
}

var isRemoteMessage: Bool {
id.eventID != nil
}
Expand Down

0 comments on commit 5439b65

Please sign in to comment.