Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOMERGE: 642 hotfix #27830

Open
wants to merge 3 commits into
base: mike/632hotfix
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go/libkb/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
package libkb

// Version is the current version (should be MAJOR.MINOR.PATCH)
const Version = "6.4.0"
const Version = "6.4.2"
2 changes: 1 addition & 1 deletion shared/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: "com.facebook.react"
apply plugin: 'com.github.triplet.play'

// KB: app version
def VERSION_NAME = "6.4.0"
def VERSION_NAME = "6.4.2"

// KB: Number of commits, like ios
Integer getVersionCode() {
Expand Down
2 changes: 1 addition & 1 deletion shared/chat/conversation/messages/attachment/shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Props = {
}

// this is a function of how much space is taken up by the rest of the elements
export const maxWidth = Kb.Styles.isMobile ? Math.min(320, Kb.Styles.dimensionWidth - 60) : 320
export const maxWidth = Kb.Styles.isMobile ? Math.min(356, Kb.Styles.dimensionWidth - 70) : 356
export const maxHeight = 320

export const missingMessage = C.Chat.makeMessageAttachment()
Expand Down
8 changes: 6 additions & 2 deletions shared/chat/conversation/messages/attachment/video/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,15 @@ const Video = React.memo(function Video(p: Props) {
const styles = Kb.Styles.styleSheetCreate(
() =>
({
container: {alignSelf: 'center', paddingRight: Kb.Styles.globalMargins.tiny, position: 'relative'},
container: {
alignSelf: 'center',
paddingRight: Kb.Styles.isMobile ? 0 : Kb.Styles.globalMargins.tiny,
position: 'relative',
},
contentContainer: {
backgroundColor: Kb.Styles.globalColors.black_05_on_white,
borderRadius: Kb.Styles.borderRadius,
maxWidth: Kb.Styles.isMobile ? '100%' : 330,
maxWidth: Kb.Styles.isMobile ? '100%' : 356 + 3 * 2,
padding: 3,
position: 'relative',
},
Expand Down
11 changes: 1 addition & 10 deletions shared/chat/conversation/messages/attachment/video/use-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@ export const useState = () => {
const message = m?.type === 'attachment' ? m : missingMessage
const {previewURL, previewHeight, previewWidth} = message
const {fileURL, downloadPath, transferState, videoDuration} = message
const vertical = previewHeight > previewWidth
// the native av controls on ios actually clip themselves if the width is too small so give
// some extra room in this case
const extra = C.isIOS && vertical ? 75 : 0
const {height, width} = C.Chat.clampImageSize(
previewWidth,
previewHeight,
maxWidth + extra,
maxHeight + extra
)
const {height, width} = C.Chat.clampImageSize(previewWidth, previewHeight, maxWidth, maxHeight)
return {downloadPath, height, previewURL, transferState, url: fileURL, videoDuration, width}
})
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as Kb from '@/common-adapters'
import * as React from 'react'
import type {Props} from './videoimpl'
import {useState} from './use-state'
import {maxWidth, maxHeight} from '../shared'

// its important we use explicit height/width so we never CLS while loading
const VideoImpl = (p: Props) => {
Expand Down Expand Up @@ -107,8 +108,8 @@ const styles = Kb.Styles.styleSheetCreate(
video: Kb.Styles.platformStyles({
isElectron: {
...Kb.Styles.globalStyles.rounded,
maxHeight: 320,
maxWidth: 320,
maxHeight,
maxWidth,
objectFit: 'contain',
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ const styles = Kb.Styles.styleSheetCreate(
position: 'relative',
width: '100%',
},
video: {},
video: {
alignSelf: 'center',
},
}) as const
)

Expand Down
2 changes: 1 addition & 1 deletion shared/ios/Keybase/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>6.4.0</string>
<string>6.4.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion shared/ios/KeybaseShare/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>6.4.0</string>
<string>6.4.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
Expand Down