|
@@ -2311,6 +2311,7 @@ extension Nexilis: MessageDelegate {
|
|
|
if !gifId.isEmpty {
|
|
|
let urlGif = "\(Utils.getURLBase())filepalio/image/\(gifId)"
|
|
|
let scale = m[CoreMessage_TMessageKey.SCALE] ?? "0"
|
|
|
+ let link = m[CoreMessage_TMessageKey.LINK] ?? ""
|
|
|
posGif = m[CoreMessage_TMessageKey.START_ANIMATION] ?? "0"
|
|
|
loopGif = m[CoreMessage_TMessageKey.LOOP_ANIMATION] ?? "0"
|
|
|
|
|
@@ -2327,11 +2328,11 @@ extension Nexilis: MessageDelegate {
|
|
|
buttonClose.actionHandle(controlEvents: .touchUpInside,
|
|
|
ForAction:{() -> Void in
|
|
|
broadcastVC.dismiss(animated: true, completion: {
|
|
|
-// imageGif = nil
|
|
|
-// Nexilis.broadcastList.remove(at: 0)
|
|
|
-// if Nexilis.broadcastList.count > 0 {
|
|
|
-// Nexilis.shared.showBroadcastMessage(m: Nexilis.broadcastList[0])
|
|
|
-// }
|
|
|
+ imageGif = nil
|
|
|
+ Nexilis.broadcastList.remove(at: 0)
|
|
|
+ if Nexilis.broadcastList.count > 0 {
|
|
|
+ Nexilis.shared.showBroadcastMessage(m: Nexilis.broadcastList[0])
|
|
|
+ }
|
|
|
})
|
|
|
})
|
|
|
imageGif.addSubview(buttonClose)
|
|
@@ -2365,6 +2366,18 @@ extension Nexilis: MessageDelegate {
|
|
|
imageGif.frame = CGRect(x: xpos, y: ypos, width: widthImage, height: heightImage)
|
|
|
imageGif.loadImageAsync(with: urlGif, isGif: true)
|
|
|
runAnimationGif()
|
|
|
+ imageGif.actionHandle(controlEvents: .touchUpInside, ForAction: {
|
|
|
+ broadcastVC.dismiss(animated: true, completion: {
|
|
|
+ imageGif = nil
|
|
|
+ Nexilis.broadcastList.remove(at: 0)
|
|
|
+ if Nexilis.broadcastList.count > 0 {
|
|
|
+ Nexilis.shared.showBroadcastMessage(m: Nexilis.broadcastList[0])
|
|
|
+ }
|
|
|
+ if !link.isEmpty {
|
|
|
+ APIS.openUrl(url: link)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
} else {
|
|
|
let stringLink = m[CoreMessage_TMessageKey.LINK] ?? ""
|