mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
fixed case insensitive contacts filtering in boxes, setting as default tg scheme handler
This commit is contained in:
@@ -305,6 +305,8 @@ void AddParticipantInner::updateSel() {
|
||||
}
|
||||
|
||||
void AddParticipantInner::updateFilter(QString filter) {
|
||||
filter = textSearchKey(filter);
|
||||
|
||||
_time = unixtime();
|
||||
QStringList f;
|
||||
if (!filter.isEmpty()) {
|
||||
|
||||
@@ -250,6 +250,8 @@ void ContactsInner::updateSel() {
|
||||
}
|
||||
|
||||
void ContactsInner::updateFilter(QString filter) {
|
||||
filter = textSearchKey(filter);
|
||||
|
||||
QStringList f;
|
||||
if (!filter.isEmpty()) {
|
||||
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
||||
|
||||
@@ -276,6 +276,8 @@ void NewGroupInner::updateSel() {
|
||||
}
|
||||
|
||||
void NewGroupInner::updateFilter(QString filter) {
|
||||
filter = textSearchKey(filter);
|
||||
|
||||
QStringList f;
|
||||
if (!filter.isEmpty()) {
|
||||
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
||||
|
||||
@@ -638,6 +638,7 @@ void objc_finish() {
|
||||
}
|
||||
|
||||
void objc_registerCustomScheme() {
|
||||
LSSetDefaultHandlerForURLScheme(CFSTR("tg"), (CFStringRef)[[NSBundle mainBundle] bundleIdentifier]);
|
||||
}
|
||||
|
||||
BOOL _execUpdater(BOOL update = YES) {
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<string>Viewer</string>
|
||||
<key>CFBundleURLIconFile</key>
|
||||
<string>AppIcon.icns</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>com.tdesktop.TelegramUrl</string>
|
||||
<string>com.tdesktop.Telegram</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>tg</string>
|
||||
|
||||
Reference in New Issue
Block a user