Skip to content

Commit a18ff6a

Browse files
author
Isaac
committed
Fix default create group ttl
1 parent d49d227 commit a18ff6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

submodules/TelegramCore/Sources/TelegramEngine/Peers/CreateGroup.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ func _internal_createGroup(account: Account, title: String, peerIds: [PeerId], t
3737
}
3838
}
3939

40+
var ttlPeriod = ttlPeriod
41+
if ttlPeriod == nil {
42+
ttlPeriod = 0
43+
}
44+
4045
var flags: Int32 = 0
4146
if let _ = ttlPeriod {
4247
flags |= 1 << 0

0 commit comments

Comments
 (0)