Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit df0e867

Browse files
authored
Merge pull request #2652 from RocketChat/beta
[RELEASE] Merge BETA into MASTER
2 parents 201fe64 + ac55c74 commit df0e867

File tree

54 files changed

+2101
-1618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2101
-1618
lines changed

Podfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ def shared_pods
5151
pod 'OAuthSwift'
5252
pod '1PasswordExtension'
5353

54-
# DiffKit
55-
diff_pods
56-
5754
# Debugging
5855
pod 'SwiftLint', :configurations => ['Debug']
5956
pod 'FLEX', '~> 2.0', :configurations => ['Debug', 'Beta']
@@ -82,7 +79,6 @@ post_install do |installer|
8279
target.build_configurations.each do |config|
8380
config.build_settings['SWIFT_VERSION'] = '4.1'
8481
config.build_settings['ENABLE_BITCODE'] = 'NO'
85-
config.build_settings['ARCHS'] = 'arm64'
8682

8783
if config.name == 'Debug'
8884
config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,6 @@ SPEC CHECKSUMS:
194194
SwiftyJSON: c4bcba26dd9ec7a027fc8eade48e2c911f229e96
195195
SwipeCellKit: d8f2617538ce3021cb0a11d1b93856a06a2f2e20
196196

197-
PODFILE CHECKSUM: cbbebee0941a6f5f7f64b4a05944c537b22215a4
197+
PODFILE CHECKSUM: c5c2f2dc03abb29b2bd3f58d81e244a50136c6d3
198198

199199
COCOAPODS: 1.5.3

Pods/Manifest.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 1320 additions & 1432 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Rocket.Chat.ShareExtension/Compose/SEComposeHeaderViewModel.swift

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,19 @@ extension SEComposeHeaderViewModel {
5454
doneButtonState = showsActivityIndicator ? .cancel : .send
5555
backButtonEnabled = !showsActivityIndicator
5656

57-
let symbol: String
58-
switch state.currentRoom.type {
59-
case .channel, .group:
60-
symbol = "#"
61-
case .directMessage:
62-
symbol = "@"
63-
}
57+
if state.currentRoom.isDiscussion {
58+
destinationText = state.currentRoom.fname
59+
} else {
60+
let symbol: String
61+
switch state.currentRoom.type {
62+
case .channel, .group:
63+
symbol = "#"
64+
case .directMessage:
65+
symbol = "@"
66+
}
6467

65-
destinationText = "\(symbol)\(state.currentRoom.name)"
68+
destinationText = "\(symbol)\(state.currentRoom.name)"
69+
}
6670
}
71+
6772
}

Rocket.Chat.ShareExtension/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>3.4.0</string>
20+
<string>3.4.1</string>
2121
<key>CFBundleVersion</key>
22-
<string>247</string>
22+
<string>250</string>
2323
<key>ITSEncryptionExportComplianceCode</key>
2424
<string></string>
2525
<key>NSExtension</key>

Rocket.Chat.ShareExtension/Rooms/SERoomCellModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ struct SERoomCellModel: SECellModel {
1313
let avatarBaseUrl: String
1414

1515
var name: String {
16+
if room.isDiscussion {
17+
return room.fname
18+
}
19+
1620
return room.name
1721
}
1822

Rocket.Chat.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@
365365
41C955FC20A3937A00FC8314 /* ChatMessageActionButtonsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41C955FB20A3937A00FC8314 /* ChatMessageActionButtonsView.swift */; };
366366
41CD52D520BEFA3B00336892 /* New Room.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 41CD52D420BEFA3B00336892 /* New Room.storyboard */; };
367367
41D0DA5820991BAE008649E7 /* UploadMessageRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80054CF61FD9AA1B00F5ECF9 /* UploadMessageRequest.swift */; };
368+
41D1610B2254E0B300B42274 /* MessageDiscussionChatItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41D1610A2254E0B300B42274 /* MessageDiscussionChatItem.swift */; };
369+
41D1610E2254E1D300B42274 /* MessageDiscussionCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 41D1610C2254E1D300B42274 /* MessageDiscussionCell.xib */; };
370+
41D1610F2254E1D300B42274 /* MessageDiscussionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41D1610D2254E1D300B42274 /* MessageDiscussionCell.swift */; };
368371
41D3668620C0323100970B99 /* SubscriptionsSortingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 41D3668320C0323000970B99 /* SubscriptionsSortingView.xib */; };
369372
41D3668720C0323100970B99 /* SubscriptionsSortingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41D3668420C0323100970B99 /* SubscriptionsSortingView.swift */; };
370373
41D3668820C0323100970B99 /* SubscriptionsSortingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41D3668520C0323100970B99 /* SubscriptionsSortingViewModel.swift */; };
@@ -1342,6 +1345,9 @@
13421345
41CABFF71F5047D600E0B289 /* ChatLoaderCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ChatLoaderCell.xib; sourceTree = "<group>"; };
13431346
41CABFF91F5047E200E0B289 /* ChatLoaderCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChatLoaderCell.swift; sourceTree = "<group>"; };
13441347
41CD52D420BEFA3B00336892 /* New Room.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = "New Room.storyboard"; sourceTree = "<group>"; };
1348+
41D1610A2254E0B300B42274 /* MessageDiscussionChatItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageDiscussionChatItem.swift; sourceTree = "<group>"; };
1349+
41D1610C2254E1D300B42274 /* MessageDiscussionCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MessageDiscussionCell.xib; sourceTree = "<group>"; };
1350+
41D1610D2254E1D300B42274 /* MessageDiscussionCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MessageDiscussionCell.swift; sourceTree = "<group>"; };
13451351
41D3668320C0323000970B99 /* SubscriptionsSortingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SubscriptionsSortingView.xib; sourceTree = "<group>"; };
13461352
41D3668420C0323100970B99 /* SubscriptionsSortingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SubscriptionsSortingView.swift; sourceTree = "<group>"; };
13471353
41D3668520C0323100970B99 /* SubscriptionsSortingViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SubscriptionsSortingViewModel.swift; sourceTree = "<group>"; };
@@ -4001,6 +4007,8 @@
40014007
9977D858217E94C400FE5EC6 /* MessageActionsCell.swift */,
40024008
4190694021D0E82E00FE2573 /* MessageVideoCallCell.xib */,
40034009
4190694121D0E82E00FE2573 /* MessageVideoCallCell.swift */,
4010+
41D1610C2254E1D300B42274 /* MessageDiscussionCell.xib */,
4011+
41D1610D2254E1D300B42274 /* MessageDiscussionCell.swift */,
40044012
4101B02A21A2EF8C00772F7C /* HeaderCell.xib */,
40054013
4101B02C21A2EF9300772F7C /* HeaderCell.swift */,
40064014
);
@@ -4027,6 +4035,7 @@
40274035
9914183E2166CFA4007D2AA2 /* MessageURLChatItem.swift */,
40284036
9977D85A217E999800FE5EC6 /* MessageActionsChatItem.swift */,
40294037
4190693E21D0E7F600FE2573 /* MessageVideoCallChatItem.swift */,
4038+
41D1610A2254E0B300B42274 /* MessageDiscussionChatItem.swift */,
40304039
4101B02821A2EF6B00772F7C /* HeaderChatItem.swift */,
40314040
);
40324041
path = ChatItems;
@@ -4467,6 +4476,7 @@
44674476
99363FCA20C8657400AA68C0 /* ShowMoreSeparatorTableViewCell.xib in Resources */,
44684477
14F8A242202E5D0600175FDC /* Red-40@3x.png in Resources */,
44694478
806465EC1FED19B9001F27DB /* EmojiView.xib in Resources */,
4479+
41D1610E2254E1D300B42274 /* MessageDiscussionCell.xib in Resources */,
44704480
41833F4E1DEF16B600E54655 /* Keys.plist in Resources */,
44714481
4124FCC91F7A6BF9008ED4C3 /* ChannelInfoActionCell.xib in Resources */,
44724482
991AB00A217458790097AE4C /* AudioMessageCell.xib in Resources */,
@@ -5206,6 +5216,7 @@
52065216
80D41DFD2092378400034D1F /* StarMessageRequest.swift in Sources */,
52075217
33D08E2A20BD5F24008D03EF /* TopTransparentViewController.swift in Sources */,
52085218
991AB00C217459690097AE4C /* AudioMessageCell.swift in Sources */,
5219+
41D1610F2254E1D300B42274 /* MessageDiscussionCell.swift in Sources */,
52095220
993B7B40215F0B730067B962 /* FileMessageChatItem.swift in Sources */,
52105221
801DF8151FD7172500302CC8 /* SubscriptionUserView.swift in Sources */,
52115222
4112DC591FFFB9B2005995E1 /* ModelHandler.swift in Sources */,
@@ -5305,6 +5316,7 @@
53055316
8073719A1F94E83600D53ADF /* SocketError.swift in Sources */,
53065317
413FB6C11FE17D7D00F010AA /* UIViewExtentions.swift in Sources */,
53075318
1496A86D20FA4644005C2E14 /* NotificationsChooseCell.swift in Sources */,
5319+
41D1610B2254E0B300B42274 /* MessageDiscussionChatItem.swift in Sources */,
53085320
8076FDB0204856AF00114F28 /* AuthCanBlockMessage.swift in Sources */,
53095321
8076FDA9204853DE00114F28 /* RealmExecute.swift in Sources */,
53105322
80461ACD2191D0D1003F1F32 /* TextHintEmojiViewCell.swift in Sources */,

Rocket.Chat/Controllers/Chat/ChannelActionsViewController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ class ChannelActionsViewController: BaseViewController {
4141
let hasAnnouncement = !(subscription.roomAnnouncement?.isEmpty ?? true)
4242
let hasTopic = !(subscription.roomTopic?.isEmpty ?? true)
4343

44-
header = [ChannelInfoBasicCellData(title: "#\(subscription.name)")]
44+
if subscription.isDiscussion {
45+
header = [ChannelInfoBasicCellData(title: subscription.fname)]
46+
} else {
47+
header = [ChannelInfoBasicCellData(title: "#\(subscription.name)")]
48+
}
4549

4650
if hasDescription {
4751
header?.append(ChannelInfoDescriptionCellData(

0 commit comments

Comments
 (0)