Commit Graph

13022 Commits

Author SHA1 Message Date
Adlai Holler
5c9815f46d ASThread: Remove Locker, Unlocker, and SharedMutex (#1213)
* ASThread: Remove Locker, Unlocker, and SharedMutex

* Remove extra line

* Kick the CI

* Move C++ down

* Fix thing
2018-11-05 13:26:36 -08:00
Michael Schneider
5909e27e37 Fix shouldTruncateForConstrainedSize in ASTextNode2 (#1214) 2018-11-05 13:16:36 -08:00
Peter Iakovlev
ab28f85e2e Merge commit 'fe48f1e9791464ab79db5ff3c1ed1ca83a0f41f0' 2018-11-06 00:44:35 +04:00
Peter Iakovlev
78646837bc Initial support for recovery email verification via code
Added support for derived localizations
2018-11-06 00:44:31 +04:00
Peter Iakovlev
567c2c2864 Merge commit '0f604899e78093295166d6d55efed6388084884e' 2018-11-06 00:42:50 +04:00
Peter Iakovlev
0f171b185e Merge commit 'c6766072975e5cdbae2fe5cca7d002176aca15e2' 2018-11-06 00:42:35 +04:00
Peter Iakovlev
6ffe06f9aa Fixed transitent read state in MessageHistoryView 2018-11-06 00:42:24 +04:00
Peter
fe48f1e979 Support for updated logging settings 2018-11-06 00:39:21 +04:00
Peter
0f604899e7 Make LoggingSettings into a shared setting 2018-11-06 00:38:50 +04:00
Peter
c676607297 Initial shared account data support 2018-11-06 00:38:16 +04:00
Peter
261b25061e no message 2018-11-06 00:37:45 +04:00
Peter Iakovlev
eecd183a28 Added support for derived localizations
Added support for confirming two-step verification email via code
2018-11-06 00:37:00 +04:00
Huy Nguyen
87615b0ec2 Cleanup Dangerfile (#1212)
`has_changes_in_source_directory` and `declared_trivial` are not longer needed after after PR #1031.
2018-11-04 18:22:28 -08:00
Huy Nguyen
e745aded7d [ASImageNode] Fix a threading issue which can cause a display completion block to never be executed (#1148)
- Clear _displayCompletionBlock while we still have the node's instance lock. Because it may not be the same block by the time the lock is reacquired. In other words, it can happen that another thread sets a new display block after this thread releases the lock but before it reacquires it. And we don't want to clear out the new block.
- Reduce a lock/unlock pair which should help perf a tiny bit.
2018-11-04 16:28:48 -08:00
Adlai Holler
c7d1465aba Generate the changelog at release time rather than updating in each PR (#1031) 2018-11-04 11:34:21 -08:00
Michael Schneider
aad0b5d18b Add -Wno-implicit-retain-self to podspec + smaller cleanups (#1209) 2018-11-04 09:34:39 -08:00
Kevin
a3194f8757 Allow configuring imageCache when initializing ASPINRemoteImageDownloader. (#1197)
* Allow configuring imageCache along with NSURLSessionConfiguration when initializing ASPINRemoteImageDownloader.

* Update CHANGELOG.md

* Update Source/Details/ASPINRemoteImageDownloader.m

Co-Authored-By: wiseoldduck <kevin@wode.com>

* Put class linkage tests behind #if DEBUG

* Remove silly nil check

* Add non-nil assert

* Update documentation
2018-11-04 09:26:57 -08:00
Ilya Laktyushin
386786d19a Merge branch 'master' of github.com:peter-iakovlev/TelegramUI 2018-11-03 23:32:44 +04:00
Ilya Laktyushin
ef533b02a6 Added new call P2P settings 2018-11-03 23:32:29 +04:00
Michael Schneider
a34f45355e Revert #1023 (#1204)
We will revert #1023. The current solution introduces problems if we are unlocking before calling _completePendingLayoutTransition. _completePendingLayoutTransition needs to be happening in one transaction if called from _u_measureNodeWithBoundsIfNecessary.
2018-11-03 12:32:15 -07:00
Michael Schneider
ecfc7835da Add experiment flag to skip layoutIfNeeded in enterPreloadState for ASM nodes (#1201) 2018-11-03 09:44:42 -07:00
Peter
44cb1acbdc Support for updated pin message API
Various video streaming fixes
2018-11-03 01:22:08 +04:00
Peter
532285b062 Added support for pinning messages in basic groups and saved messages
Added support for separate channel notification settings
2018-11-03 01:13:37 +04:00
Adlai Holler
706396f7d1 Delete circle config from master now that I know how to get it to build my experimental branch 2018-11-02 14:04:41 -07:00
Adlai Holler
d0ba092a77 Convert the codebase to Objective-C++ (#1206)
* Convert the codebase to Objective-C++ throughout. One language is better than two.

* Put it back

* Fix linker

* Point explicitly to updated Weaver to unblock build

* Revert "Point explicitly to updated Weaver to unblock build"

This reverts commit fdc25296e8794d4e6e56c35f5fe6da2be3f71dbc.

* Revert "Fix linker"

This reverts commit 7be25f91519b8497ef42de79f115bcfbdb965c39.

* Add in the frameworks

* no message

* Address spec lint warnings

* Fix tvos build

* Put that back

* Address Michael's review

* Add comment to kick CI
2018-11-02 12:04:14 -07:00
Peter
7fb8fd4765 Merge commit '3cb29347d1da13c0ef115e15a274cff3ae694aa7' 2018-11-02 22:43:35 +04:00
Peter
1fb0bfa240 Various fixes for media streaming
Preload next track when playing music
Added ability to resend failed messages
2018-11-02 22:43:30 +04:00
Peter
33c9d43494 Merge commit '957122c3b43ee6b7f3f91ddfcc79da1922f0f125' 2018-11-02 22:42:10 +04:00
Peter
588513a377 Fixed account peer presence 2018-11-02 22:42:01 +04:00
Peter
63d627d81d Merge commit 'ea3a8f541481a0788aaad410ccdeae33774e4e06' 2018-11-02 22:40:28 +04:00
Peter
e56e8f1511 Added ability to "block" interaction until controller presentation is completed 2018-11-02 22:40:24 +04:00
Peter
9af69f816c Added automatic media cleanup
Fixed search for secret chats
2018-11-02 22:39:20 +04:00
Ilya Laktyushin
3cb29347d1 Merge branch 'master' of github.com:peter-iakovlev/TelegramUI
# Conflicts:
#	TelegramUI/PresentationStrings.swift
2018-11-02 20:32:05 +04:00
Adlai Holler
7ccdcb9472 Fix the config and limit the branch 2018-11-02 09:12:51 -07:00
Adlai Holler
d3591980e3 Add a CircleCI configuration file 2018-11-02 08:42:45 -07:00
Michael Schneider
8822bae0d5 Follow up cleanup #trivial (#1203)
* Remove whitespace at the end of the line

* Fix indentation

* Wrap if check for assertion in ASDISPLAYNODE_ASSERTIONS_ENABLED

* Add testTextNodeSwitchWorksInMultiThreadEnvironment tests
2018-11-02 07:54:15 -07:00
Ilya Laktyushin
957122c3b4 Merge branch 'temp' 2018-11-02 12:30:08 +04:00
Ilya Laktyushin
74d0a74647 no message 2018-11-02 12:29:19 +04:00
Ilya Laktyushin
7cd014ac5a Instant View 2.0 support
Password pending recent sessions
Server call P2P privacy setting
2018-11-02 11:58:47 +04:00
Ilya Laktyushin
ca6c287be4 Added Instant View 2.0 components support 2018-11-02 11:52:37 +04:00
Ilya Laktyushin
7406df5ac4 no message 2018-11-02 11:51:12 +04:00
Ilya Laktyushin
ea3a8f5414 Fixed context menu leaving screen bounds when source is beyond the left edge of the screen 2018-11-02 11:50:44 +04:00
Adlai Holler
0380b270bb Address Xcode warnings about unguarded availability and implicit self retains (#1207) 2018-11-01 19:40:16 -07:00
Kevin
fde47a5e28 Add tests for accessibility (#1205) 2018-11-01 08:10:44 -07:00
Peter
f110dd2b66 Support for updated global 3d touch API
Fixed media sharing to secret chats
2018-11-01 19:10:11 +04:00
Michael Schneider
fec14f8310 Fix logic cleaning data if delegate / dataSource changes and bring over logic to ASTableView (#1200)
* Cleanup in ASTableView datasource/delegate change

* Fix experiments logic

* Add changelog entry
2018-11-01 08:08:45 -07:00
Peter
d3f62da375 Additional fixes for global 3d touch workaround 2018-11-01 19:08:21 +04:00
ernestmama
055d27c45a ASTextNode2 to consider both width and height when determining if it is calculating an instrinsic size (#1196) 2018-10-31 14:06:48 -10:00
Peter
481f0437b4 Merge commit '43047c73304e93fa2c59652568fdc96f69675c83' 2018-10-31 23:39:24 +04:00
Peter
4dd5c5fef1 Updated ListView animations
Added global 3d touch handling (workaround for 3d touch controller leak)
2018-10-31 23:39:19 +04:00