Skip to content

Commit

Permalink
v0.10.3 (533)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaigner committed Sep 6, 2022
1 parent b0f1911 commit 6d00b52
Show file tree
Hide file tree
Showing 629 changed files with 13,735 additions and 6,053 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## [0.10.3 (533)] - 2022-06-29

- It is now possible to customize the alert sound for message notifications. You should definitively try our very exclusive, never heard before, unprecedented polyphonic sounds :-)
- You can now easily forward any message to one or more discussions!
- Improves the reliability of the progress bars when sending and receiving attachments.
- Improves the responsiveness of the download and pause buttons on received attachments.
- While listening to a voice message, you can now switch between the internal or the external speaker.
- In addition to the media gallery, you can now browse through all the documents of a discussion!
- When leaving a group and joining it again later on, the "old" discussion is reactivated (instead of creating a new one), allowing to continue the discussion where you left it.
- The former is also true for a one-to-one discussion with a contact that you remove from your contacts and add back later.
- When sharing a screenshot using Olvid, the discussion screen would not always show a big preview of the image. This is fixed.
- The file previewer would sometimes allow sharing of ephemeral attachments. This is fixed.
- Fixes a few bugs where contact images would not always show properly.
- Fixes occasional rotation issues when setting a profile picture.
- Fixes an issue potentially preventing messages to be sent.
- Fixes multiple issues with the "delete for all" functionality.
- Fixes a bug where tapping an attachment in a discussion could show another attachment of the message.
- Improves the efficiency of messages downloads.
- The mute switch of the call screen is now clearer.

## [0.10.2 (519)] - 2022-05-01

- Want to see a nice view of all the photos and videos received in a discussion? Try the new gallery, available via the top right button of any discussion screen.
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.fr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## [0.10.3 (533)] - 2022-06-29

- Vous pouvez maintenant choisir la sonnerie associée aux alertes des messages d'une discussion ! N'hésitez pas à essayer nos sons polyphoniques exclusifs, jamais entendus auparavant, absolument uniques :-)
- Vous pouvez maintenant transférer n'importe quel message vers une ou plusieurs discussion facilement !
- Améliore la fiabilité des barres de progression pour les pièces jointes, en envoi et en réception.
- Améliore la réactivité des boutons de téléchargement manuel des pièces jointes en réception.
- Pendant la lecture d'un message audio, vous pouvez choisir entre l'écouteur interne et le haut-parleur.
- En plus de la gallerie de médias, vous pouvez maintenant accéder à une gallerie de tous les documents échangés dans une discussion !
- Quitter un groupe et le rejoindre à nouveau ne crée plus de « nouvelle » discussion si l'ancienne est encore disponible. Dans ce cas, elle est « réactivée », de manière à pouvoir reprendre la discussion là où vous l'aviez laissée.
- Ceci est aussi vrai lorsque l'on supprime un contact et qu'on l'ajoute à nouveau par la suite.
- Corrige un bug qui empêchait parfois l'affichage d'une jolie vignette lorsque l'on partageait une capture d'écran.
- Le visualisateur de fichier permettait parfois de partager une pièce jointe éphémère. C'est corrigé.
- Corrige un bug qui provoquait parfois un affichage incohérent des vignettes pour les contacts.
- Corrige un bug pouvant entraîner une étrange rotation d'une photo de profil.
- Corrige un bug pouvant parfois empêcher l'envoi de message.
- Corrige de multiples bugs liés à la suppression globale de message.
- Corrige un bug entrainant, au touché d'une pièce jointe dans le message, l'affichage d'une autre pièce jointe du message.
- Améliore l'efficacité des téléchargements de messages.
- Le bouton « silence » de l'écran d'appel est plus clair.

## [0.10.2 (519)] - 2022-05-01

- Pour profiter d'un aperçu de l'intégralité des photos et des vidéos reçues ou envoyées dans une discussion, rendez-vous dans la nouvelle galerie accessible via le bouton en haut à droite de votre discussion préférée !
Expand Down
50 changes: 28 additions & 22 deletions Engine/BigInt/BigInt/BigIntTests/BigIntTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class BigIntTests: XCTestCase {
for _ in 0..<numberOfConversions {
var stringValue1 = ""
for _ in 0..<64 {
let r = arc4random()
let r = UInt32.random(in: UInt32.min...UInt32.max)
stringValue1 += "\(r)"
}
let val = try! BigInt(stringValue1)
Expand All @@ -82,7 +82,7 @@ class BigIntTests: XCTestCase {
let numberOfConversions = 10000
let op = BigInt()
for _ in 0..<numberOfConversions {
let r = UInt(arc4random())
let r = UInt.random(in: UInt.min...UInt.max)
op.set(r)
XCTAssertEqual(r, try! UInt(op))
}
Expand All @@ -106,35 +106,35 @@ class BigIntTests: XCTestCase {
let rop = BigInt()
let numberOfSimpleTests = 10000
for _ in 0..<numberOfSimpleTests {
let r1 = UInt(arc4random())
let r2 = UInt(arc4random())
let r1 = UInt.random(in: UInt.min...UInt.max)/2
let r2 = UInt.random(in: UInt.min...UInt.max)/2
op1.set(r1)
op2.set(r2)
BigInt.add(rop: rop, op1: op1, op2: op2)
XCTAssertEqual(try! UInt(rop), r1+r2)
}
// We test that op1 can be both a destination and source
for _ in 0..<numberOfSimpleTests {
let r1 = UInt(arc4random())
let r2 = UInt(arc4random())
let r1 = UInt.random(in: UInt.min...UInt.max)/2
let r2 = UInt.random(in: UInt.min...UInt.max)/2
op1.set(r1)
op2.set(r2)
BigInt.add(rop: op1, op1: op1, op2: op2)
XCTAssertEqual(try! UInt(op1), r1+r2)
}
// We test that op2 can be both a destination and source
for _ in 0..<numberOfSimpleTests {
let r1 = UInt(arc4random())
let r2 = UInt(arc4random())
let r1 = UInt.random(in: UInt.min...UInt.max)/2
let r2 = UInt.random(in: UInt.min...UInt.max)/2
op1.set(r1)
op2.set(r2)
BigInt.add(rop: op2, op1: op1, op2: op2)
XCTAssertEqual(try! UInt(op2), r1+r2)
}
// We test the addition of an UInt
for _ in 0..<numberOfSimpleTests {
let r1 = UInt(arc4random())
let r2 = UInt(arc4random())
let r1 = UInt.random(in: UInt.min...UInt.max)/2
let r2 = UInt.random(in: UInt.min...UInt.max)/2
op1.set(r1)
BigInt.add(rop: rop, op1: op1, op2: r2)
XCTAssertEqual(try! UInt(rop), r1+r2)
Expand All @@ -158,7 +158,7 @@ class BigIntTests: XCTestCase {
let rop = BigInt()
let numberOfSimpleTests = 10000
for _ in 0..<numberOfSimpleTests {
let r = UInt(arc4random())
let r = UInt.random(in: UInt.min...UInt.max)
op1.set(r)
BigInt.neg(rop: op2, op: op1)
BigInt.add(rop: rop, op1: op1, op2: op2)
Expand All @@ -177,8 +177,8 @@ class BigIntTests: XCTestCase {
XCTAssertEqual(try! Int(rop), 6)
let numberOfSimpleTests = 10000
for _ in 0..<numberOfSimpleTests {
let _op = UInt(arc4random())
let _n = UInt(arc4random())/100
let _op = UInt.random(in: UInt.min...UInt.max)
let _n = UInt.random(in: UInt.min...UInt.max)/100
op.set(_op)
n.set(_n)
BigInt.mod(rop: rop, op: op, modulo: n)
Expand Down Expand Up @@ -429,8 +429,8 @@ class BigIntTests: XCTestCase {
let op2 = BigInt()
let numberOfSimpleTests = 10000
for _ in 0..<numberOfSimpleTests {
let r1 = UInt(arc4random())
let r2 = UInt(arc4random())
let r1 = UInt.random(in: UInt.min...UInt.max)
let r2 = UInt.random(in: UInt.min...UInt.max)
op1.set(r1)
op2.set(r2)
if r1 < r2 {
Expand All @@ -451,8 +451,9 @@ class BigIntTests: XCTestCase {
let rop = BigInt()
let numberOfTests = 1000
for _ in 0..<numberOfTests {
let r1 = Int(arc4random())/2
let r2 = Int(arc4random())/2
let range: Range<Int> = -2^(Int.bitWidth/3)..<2^(Int.bitWidth/3)
let r1 = Int.random(in: range)
let r2 = Int.random(in: range)
op1.set(r1)
op2.set(r2)
BigInt.mul(rop: rop, op1: op1, op2: op2)
Expand Down Expand Up @@ -543,16 +544,21 @@ class BigIntTests: XCTestCase {
let op2 = BigInt()
let rop = BigInt()
let n = BigInt()
let numberOfTests = 1000
let numberOfTests = 10_000
for _ in 0..<numberOfTests {
let r1 = Int(arc4random())/2
let r2 = Int(arc4random())/2
let r3 = Int(arc4random())
let range: Range<Int> = -2^(Int.bitWidth/3)..<2^(Int.bitWidth/3)
let r1 = Int.random(in: range)
let r2 = Int.random(in: range)
let r3 = Int.random(in: 0...Int.max)
op1.set(r1)
op2.set(r2)
n.set(r3)
BigInt.mul(rop: rop, op1: op1, op2: op2, modulo: n)
XCTAssertEqual(try! Int(rop), (r1*r2) % r3)
var expectedResult = (r1*r2) % r3
while expectedResult < 0 {
expectedResult += r3
}
XCTAssertEqual(try! Int(rop), expectedResult)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ extension ObvChannelManagerImplementation {

public func processNetworkReceivedEncryptedMessages(_ networkReceivedMessages: Set<ObvNetworkReceivedMessageEncrypted>, within obvContext: ObvContext) {

os_log("🌊 Processing a network received encrypted message within flow %{public}@", log: log, type: .info, obvContext.flowId.debugDescription)
os_log("🌊 Processing %d network received encrypted messages within flow %{public}@", log: log, type: .info, networkReceivedMessages.count, obvContext.flowId.debugDescription)
do {
try gateKeeper.waitUntilSlotIsAvailableForObvContext(obvContext)
} catch let error {
Expand Down
2 changes: 1 addition & 1 deletion Engine/ObvCrypto/ObvCrypto/PRNG/Seed.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import ObvTypes

public final class Seed: NSObject, NSCopying, ObvCodable {

static let minLength = 32 // Changing this requires thorough testing
public static let minLength = 32 // Changing this requires thorough testing
public let raw: Data

var length: Int {
Expand Down
Loading

0 comments on commit 6d00b52

Please sign in to comment.