diff --git a/iGap/Libraries/Chat Screen/Controller/IGMessageViewController.swift b/iGap/Libraries/Chat Screen/Controller/IGMessageViewController.swift index 2b0d0ec..66ff8f5 100644 --- a/iGap/Libraries/Chat Screen/Controller/IGMessageViewController.swift +++ b/iGap/Libraries/Chat Screen/Controller/IGMessageViewController.swift @@ -954,9 +954,9 @@ class IGMessageViewController: UIViewController, DidSelectLocationDelegate, UIGe } func allowEdit(_ message: IGRoomMessage) -> Bool{ - if message.authorHash == currentLoggedInUserAuthorHash || - (self.room!.type == .channel && self.room!.channelRoom!.role == .owner) || - (self.room!.type == .group && self.room!.groupRoom!.role == .owner) { + if (message.forwardedFrom == nil) && message.authorHash == currentLoggedInUserAuthorHash && + ((self.room!.type == .channel && self.room!.channelRoom!.role == .owner) || + (self.room!.type == .group && self.room!.groupRoom!.role == .owner)) { return true } return false