2014-11-19 21:17:53 +01:00
|
|
|
//
|
|
|
|
// TSGroupThread.h
|
|
|
|
// TextSecureKit
|
|
|
|
//
|
|
|
|
// Created by Frederic Jacobs on 16/11/14.
|
|
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "TSThread.h"
|
2015-01-16 15:28:41 +01:00
|
|
|
#import "TSGroupModel.h"
|
2014-11-19 21:17:53 +01:00
|
|
|
|
|
|
|
@interface TSGroupThread : TSThread
|
2015-01-16 15:28:41 +01:00
|
|
|
@property (nonatomic,strong) TSGroupModel* groupModel;
|
|
|
|
+ (instancetype)getOrCreateThreadWithGroupModel:(TSGroupModel *)groupModel transaction:(YapDatabaseReadWriteTransaction*)transaction;
|
2014-11-19 21:17:53 +01:00
|
|
|
|
2015-01-16 15:28:41 +01:00
|
|
|
+ (instancetype)threadWithGroupModel:(TSGroupModel *)groupModel transaction:(YapDatabaseReadTransaction*)transaction;
|
2014-11-19 21:17:53 +01:00
|
|
|
- (NSData*)groupId;
|
|
|
|
|
|
|
|
@end
|