mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-08 01:40:09 +00:00
Merge commit 'cd6af7d5378f746b7be0c11693b3f6a0282644e9' into beta
This commit is contained in:
commit
ea726fe4a4
@ -383,7 +383,7 @@ final class CallListControllerNode: ASDisplayNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let activeCall = activeCall {
|
if let activeCall = activeCall {
|
||||||
strongSelf.context.joinGroupCall(peerId: peerId, invite: nil, requestJoinAsPeerId: nil, activeCall: activeCall)
|
strongSelf.joinGroupCall(peerId, activeCall)
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1506,7 +1506,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
|||||||
|
|
||||||
let previousRaisedHand = strongSelf.stateValue.raisedHand
|
let previousRaisedHand = strongSelf.stateValue.raisedHand
|
||||||
if !(strongSelf.stateValue.muteState?.canUnmute ?? false) {
|
if !(strongSelf.stateValue.muteState?.canUnmute ?? false) {
|
||||||
strongSelf.stateValue.raisedHand = participant.raiseHandRating != nil
|
strongSelf.stateValue.raisedHand = participant.hasRaiseHand
|
||||||
}
|
}
|
||||||
|
|
||||||
if let muteState = participant.muteState, muteState.canUnmute && previousRaisedHand {
|
if let muteState = participant.muteState, muteState.canUnmute && previousRaisedHand {
|
||||||
|
|||||||
@ -158,12 +158,14 @@ private func currentDateTimeFormat() -> PresentationDateTimeFormat {
|
|||||||
var dateSeparator = "/"
|
var dateSeparator = "/"
|
||||||
var dateSuffix = ""
|
var dateSuffix = ""
|
||||||
if let dateString = DateFormatter.dateFormat(fromTemplate: "MdY", options: 0, locale: locale) {
|
if let dateString = DateFormatter.dateFormat(fromTemplate: "MdY", options: 0, locale: locale) {
|
||||||
for separator in [".", "/", "-", "/"] {
|
for separator in [". ", ".", "/", "-", "/"] {
|
||||||
if dateString.contains(separator) {
|
if dateString.contains(separator) {
|
||||||
if separator == ". " {
|
if separator == ". " {
|
||||||
dateSuffix = "."
|
dateSuffix = "."
|
||||||
|
dateSeparator = "."
|
||||||
|
} else {
|
||||||
|
dateSeparator = separator
|
||||||
}
|
}
|
||||||
dateSeparator = separator
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user