Merge fixes
This commit is contained in:
parent
3592098569
commit
10e8d6e979
3 changed files with 4 additions and 16 deletions
|
|
@ -57,9 +57,9 @@
|
|||
<qresource prefix="/misc">
|
||||
<file alias="default_shortcuts-custom.json">../../default_shortcuts-custom.json</file>
|
||||
<file alias="default_kotato-settings-custom.json">../../default_kotato-settings-custom.json</file>
|
||||
<file alias="kotatogramdesktop.desktop">../../../../lib/xdg/kotatogramdesktop.desktop</file>
|
||||
</qresource>
|
||||
<qresource prefix="/ktg_lang">
|
||||
<file alias="ru.json">../../langs/rewrites/ru.json</file>
|
||||
<file alias="kotatogramdesktop.desktop">../../../../lib/xdg/kotatogramdesktop.desktop</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
|
|
@ -86,12 +86,11 @@ void PeerClickHandler::onClick(ClickContext context) const {
|
|||
if (context.button == Qt::LeftButton && App::wnd()) {
|
||||
const auto controller = App::wnd()->sessionController();
|
||||
const auto currentPeer = controller->activeChatCurrent().peer();
|
||||
if (_peer
|
||||
&& _peer->isChannel()
|
||||
&& currentPeer != _peer) {
|
||||
if (_peer && _peer->isChannel() && currentPeer != _peer) {
|
||||
const auto clickedChannel = _peer->asChannel();
|
||||
if (!clickedChannel->isPublic() && !clickedChannel->amIn()
|
||||
&& currentPeer->asChannel()->linkedChat() != clickedChannel) {
|
||||
&& (!currentPeer->isChannel()
|
||||
|| currentPeer->asChannel()->linkedChat() != clickedChannel)) {
|
||||
Ui::show(Box<InformBox>(_peer->isMegagroup()
|
||||
? tr::lng_group_not_accessible(tr::now)
|
||||
: tr::lng_channel_not_accessible(tr::now)));
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
[Protocol]
|
||||
exec=/usr/bin/kotatogram-desktop -- %u
|
||||
protocol=tg
|
||||
input=none
|
||||
output=none
|
||||
helper=true
|
||||
listing=false
|
||||
reading=false
|
||||
writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
Loading…
Add table
Reference in a new issue