pull/570/head
Niels Andriesse 6 years ago
parent a0e94d30fb
commit 89221c1f71

@ -1647,7 +1647,7 @@ typedef enum : NSUInteger {
NSString *placeholderText = hasPendingFriendRequest ? NSLocalizedString(@"Pending Friend Request...", "") : NSLocalizedString(@"New Message", "");
[self.inputToolbar setPlaceholderText:placeholderText];
BOOL isContactFriend = self.thread.isContactFriend;
[self.inputToolbar setAttachmentButtonHidden:!isContactFriend];
[self.inputToolbar setAttachmentButtonHidden:(!isContactFriend && !self.thread.isGroupThread)];
}
#pragma mark - Identity

@ -806,8 +806,8 @@ public class SignalAttachment: NSObject {
var maxSizeRect = CGRect.zero
maxSizeRect.size = CGSize(width: maxSize, height: maxSize)
let newSize = AVMakeRect(aspectRatio: scrSize, insideRect: maxSizeRect).size
assert(newSize.width <= maxSize)
assert(newSize.height <= maxSize)
// assert(newSize.width <= maxSize)
// assert(newSize.height <= maxSize)
let colorSpace = CGColorSpaceCreateDeviceRGB()
let bitmapInfo: CGBitmapInfo = [

@ -123,7 +123,7 @@ public final class LokiPublicChatMessage : NSObject {
// Fields required by the .NET API
"version" : 1, "type" : type,
// Custom fields
"lokiType" : attachment.kind.rawValue, "server" : attachment.server, "id" : attachment.serverID, "contentType" : attachment.contentType, "size" : attachment.size, "fileName" : attachment.fileName, "flags" : attachment.flags, "width" : attachment.width, "height" : attachment.height, "url" : attachment.url
"lokiType" : attachment.kind.rawValue, "server" : attachment.server, "id" : attachment.serverID, "contentType" : attachment.contentType, "size" : attachment.size, "fileName" : attachment.fileName, "width" : attachment.width, "height" : attachment.height, "url" : attachment.url
]
if let caption = attachment.caption {
attachmentValue["caption"] = attachment.caption

Loading…
Cancel
Save