Removed channel name from first message. Fixed channel members count.
This commit is contained in:
		
							parent
							
								
									45dabbf9ab
								
							
						
					
					
						commit
						1d6aba86ba
					
				
					 3 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
					@ -567,7 +567,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
 | 
				
			||||||
"lng_action_changed_title" = "{from} changed group name to «{title}»";
 | 
					"lng_action_changed_title" = "{from} changed group name to «{title}»";
 | 
				
			||||||
"lng_action_changed_title_channel" = "Channel name was changed to «{title}»";
 | 
					"lng_action_changed_title_channel" = "Channel name was changed to «{title}»";
 | 
				
			||||||
"lng_action_created_chat" = "{from} created group «{title}»";
 | 
					"lng_action_created_chat" = "{from} created group «{title}»";
 | 
				
			||||||
"lng_action_created_channel" = "Channel «{title}» created";
 | 
					"lng_action_created_channel" = "Channel created";
 | 
				
			||||||
"lng_action_group_migrate" = "The group was upgraded to a supergroup";
 | 
					"lng_action_group_migrate" = "The group was upgraded to a supergroup";
 | 
				
			||||||
"lng_action_pinned_message" = "{from} pinned «{text}»";
 | 
					"lng_action_pinned_message" = "{from} pinned «{text}»";
 | 
				
			||||||
"lng_action_pinned_media" = "{from} pinned {media}";
 | 
					"lng_action_pinned_media" = "{from} pinned {media}";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1808,7 +1808,7 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
 | 
				
			||||||
	case mtpc_messageActionChannelCreate: {
 | 
						case mtpc_messageActionChannelCreate: {
 | 
				
			||||||
		auto &d = action.c_messageActionChannelCreate();
 | 
							auto &d = action.c_messageActionChannelCreate();
 | 
				
			||||||
		if (isPost()) {
 | 
							if (isPost()) {
 | 
				
			||||||
			text = lng_action_created_channel(lt_title, textClean(qs(d.vtitle)));
 | 
								text = lang(lng_action_created_channel);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			text = lng_action_created_chat(lt_from, from, lt_title, textClean(qs(d.vtitle)));
 | 
								text = lng_action_created_chat(lt_from, from, lt_title, textClean(qs(d.vtitle)));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -67,7 +67,8 @@ CoverWidget::CoverWidget(QWidget *parent, PeerData *peer) : TWidget(parent)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	auto observeEvents = ButtonsUpdateFlags
 | 
						auto observeEvents = ButtonsUpdateFlags
 | 
				
			||||||
		| UpdateFlag::NameChanged
 | 
							| UpdateFlag::NameChanged
 | 
				
			||||||
		| UpdateFlag::UserOnlineChanged;
 | 
							| UpdateFlag::UserOnlineChanged
 | 
				
			||||||
 | 
							| UpdateFlag::MembersChanged;
 | 
				
			||||||
	subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {
 | 
						subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {
 | 
				
			||||||
		notifyPeerUpdated(update);
 | 
							notifyPeerUpdated(update);
 | 
				
			||||||
	}));
 | 
						}));
 | 
				
			||||||
| 
						 | 
					@ -336,7 +337,7 @@ void CoverWidget::notifyPeerUpdated(const Notify::PeerUpdate &update) {
 | 
				
			||||||
	if (update.flags & UpdateFlag::NameChanged) {
 | 
						if (update.flags & UpdateFlag::NameChanged) {
 | 
				
			||||||
		refreshNameText();
 | 
							refreshNameText();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (update.flags & UpdateFlag::UserOnlineChanged) {
 | 
						if (update.flags & (UpdateFlag::UserOnlineChanged | UpdateFlag::MembersChanged)) {
 | 
				
			||||||
		refreshStatusText();
 | 
							refreshStatusText();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue