mirror of https://github.com/procxx/kepka.git
				
				
				
			some fixes for the 0.9.11.dev version
This commit is contained in:
		
							parent
							
								
									0ef129802b
								
							
						
					
					
						commit
						d145175d28
					
				| 
						 | 
				
			
			@ -651,7 +651,8 @@ bool ApiWrap::gotSelfParticipantFail(ChannelData *channel, const RPCError &error
 | 
			
		|||
 | 
			
		||||
void ApiWrap::kickParticipant(PeerData *peer, UserData *user) {
 | 
			
		||||
	KickRequest req(peer, user);
 | 
			
		||||
	if (_kickRequests.contains(req));
 | 
			
		||||
	if (_kickRequests.contains(req)) return;
 | 
			
		||||
 | 
			
		||||
	if (peer->isChannel()) {
 | 
			
		||||
		_kickRequests.insert(req, MTP::send(MTPchannels_KickFromChannel(peer->asChannel()->inputChannel, user->inputUser, MTP_bool(true)), rpcDone(&ApiWrap::kickParticipantDone, req), rpcFail(&ApiWrap::kickParticipantFail, req)));
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -697,7 +697,7 @@ void Application::checkMapVersion() {
 | 
			
		|||
		if (Local::oldMapVersion()) {
 | 
			
		||||
			QString versionFeatures;
 | 
			
		||||
			if (cDevVersion() && Local::oldMapVersion() < 9011) {
 | 
			
		||||
				versionFeatures = QString::fromUtf8("\xe2\x80\x94 Groups can now have multiple administrators with the ability to edit the name and logo, and add and remove members.\n\xe2\x80\x94 Groups that have reached their capacity of 200 users can be upgraded to supergroups of up to 1,000 members.\n\nWARNING: Only updated Telegram apps will be able to open supergroups. DO NOT upgrade your groups, before the stable version is out and updates for other apps are released.");// .replace('@', qsl("@") + QChar(0x200D));
 | 
			
		||||
				versionFeatures = QString::fromUtf8("\xe2\x80\x94 Groups can now have multiple administrators with the ability to edit the name and logo, and add and remove members.\n\xe2\x80\x94 Groups that have reached their capacity of 200 users can be upgraded to supergroups of up to 1,000 members.\n\nWARNING: Only updated Telegram apps will be able to open supergroups. DO NOT upgrade your groups before the stable version is out and updates for other apps are released.");// .replace('@', qsl("@") + QChar(0x200D));
 | 
			
		||||
			} else if (Local::oldMapVersion() < 9010) {
 | 
			
		||||
				versionFeatures = lang(lng_new_version_text).trimmed();
 | 
			
		||||
			} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -324,7 +324,7 @@ void OverviewInner::fixItemIndex(int32 ¤t, MsgId msgId) const {
 | 
			
		|||
 | 
			
		||||
void OverviewInner::searchReceived(SearchRequestType type, const MTPmessages_Messages &result, mtpRequestId req) {
 | 
			
		||||
	if (!_search.text().isEmpty()) {
 | 
			
		||||
		if (_type == SearchFromStart) {
 | 
			
		||||
		if (type == SearchFromStart) {
 | 
			
		||||
			SearchQueries::iterator i = _searchQueries.find(req);
 | 
			
		||||
			if (i != _searchQueries.cend()) {
 | 
			
		||||
				_searchCache[i.value()] = result;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -72,7 +72,7 @@ void MacPrivate::notifyClicked(unsigned long long peer, int msgid) {
 | 
			
		|||
		bool tomsg = !history->peer->isUser() && (msgid > 0);
 | 
			
		||||
		if (tomsg) {
 | 
			
		||||
			HistoryItem *item = App::histItemById(peerToChannel(PeerId(peer)), MsgId(msgid));
 | 
			
		||||
			if (!item || !item->notifyByFrom()) {
 | 
			
		||||
			if (!item || !item->mentionsMe()) {
 | 
			
		||||
				tomsg = false;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -526,7 +526,11 @@ private:
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct MegagroupInfo {
 | 
			
		||||
	MegagroupInfo() : botStatus(0), joinedMessageFound(false), migrateFromPtr(0), lastParticipantsStatus(LastParticipantsUpToDate), lastParticipantsCount(0) {
 | 
			
		||||
	MegagroupInfo() : botStatus(0)
 | 
			
		||||
	, joinedMessageFound(false)
 | 
			
		||||
	, lastParticipantsStatus(LastParticipantsUpToDate)
 | 
			
		||||
	, lastParticipantsCount(0)
 | 
			
		||||
	, migrateFromPtr(0) {
 | 
			
		||||
	}
 | 
			
		||||
	typedef QList<UserData*> LastParticipants;
 | 
			
		||||
	LastParticipants lastParticipants;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue