Commit Graph

13022 Commits

Author SHA1 Message Date
Grishka
bfa92bd59c Updated projects 2019-03-12 16:15:22 +03:00
Fela Ameghino
a0fbeeea92 Improved CXWrapper adding various methods 2019-03-12 11:55:52 +01:00
Fela Ameghino
5c4163ca5a Merge branch 'public' of https://github.com/UnigramDev/libtgvoip into public 2019-03-12 11:54:11 +01:00
Fela Ameghino
65da311f69 Improved CXWrapper adding various methods 2019-03-12 11:53:50 +01:00
Fela Ameghino
e5900e698d Improved CXWrapper adding various methods 2019-03-12 11:51:26 +01:00
ernestmama
6f44c3921e Remove experimental features (exp_skip_a11y_wait && exp_new_default_cell_layout_mode) (#1383)
* Remove experimental features

* prevent blocking main thread

* remove small content all together as none is the default

* Update ASExperimentalFeatures.h
2019-03-11 13:34:35 -07:00
Fela Ameghino
07df8c9c4f Merge branch 'public' of https://github.com/UnigramDev/libtgvoip into public 2019-03-11 18:45:29 +01:00
Fela Ameghino
4fd5f339cd Added GetConnectionMaxLayer to CXWrapper 2019-03-11 18:45:07 +01:00
Fela Ameghino
fe080d6bde Added GetConnectionMaxLayer to CXWrapper 2019-03-11 18:43:16 +01:00
Fela Ameghino
028d86f599 Updated UWP project to 2.4.4 2019-03-11 18:28:38 +01:00
Garrett Moon
32a2ebf49b Update for 9.4.1 CI (#1392) 2019-03-11 09:09:28 -07:00
Grishka
4b9a9116af Calls compatibility fix 2019-03-11 14:34:15 +03:00
Grishka
b6cfcba80f Fixed protocol compatibility 2019-03-11 14:32:56 +03:00
Grishka
131ab1fce9 Update libtgvoip 2019-03-11 01:35:34 +03:00
Grishka
40c8685e77 Version 2019-03-11 01:34:58 +03:00
Grishka
c5a39bd57c Fix 2019-03-11 01:31:13 +03:00
Grishka
a6e6ed5825 Fix FEC packet loss percent for libopus 1.3
Also make opus in-band FEC less aggressive
2019-03-11 01:12:09 +03:00
Greg Bolsinga
593b56aaff Clean up a clang analyzer cast error (#1387)
~/Texture/Source/Private/ASMutableElementMap.mm:32:24: warning: Conversion from value of type 'NSMutableArray<NSMutableArray *> *' to incompatible type 'ASMutableCollectionElementTwoDimensionalArray *'
    _sectionsOfItems = (id)ASTwoDimensionalArrayDeepMutableCopy(items);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
2019-03-09 12:15:20 -08:00
Adlai Holler
9cd0d58373 Rename ASDN C++ namespace to AS (#1366)
* Rename ASDN C++ namespace to "AS." Referring to the framework as ASDisplayNode is pretty out-dated and verbose. See CoreAnimation which usees CA for their internal namespace.

More using

* More cases
2019-03-09 12:14:58 -08:00
Ilya Laktyushin
a1bcc9eafd Use in-app language locale for date/time formatting and use locale's decimal separator for data size formatting 2019-03-09 22:14:27 +03:00
Ilya Laktyushin
621f52fcf4 Data Size String: fixed remainder calculation and added customizable decimal separator 2019-03-09 22:03:00 +03:00
Ilya Laktyushin
6c7da27260 Update submodules 2019-03-09 20:36:51 +03:00
Ilya Laktyushin
6765932eef Fixed gifs and stickers scroll snapping 2019-03-09 20:34:46 +03:00
Jacob Farkas
a38b3f547e Add UIDataSourceModelAssociation to ASTableView and ASCollectionView (#1354)
* Add UIDataSourceModelAssociation protocol conformance to ASTableView and ASCollectionView.

* Implementing review feedback from @Adlai-Holler
2019-03-09 07:56:10 -08:00
Garrett Moon
9b80eabd8f Adds support for using UIGraphicsImageRenderer in ASTextNode. (#1384)
* Adds support for using UIGraphicsImageRenderer in ASTextNode.

In many cases this reduces the backing store of text nodes by 1/2.

* Guard for UIGraphicsRenderer availability.

* Comma
2019-03-09 07:55:46 -08:00
Kevin
872e89b772 Need some more locks for working with calculated yoga layouts (#1388) 2019-03-09 07:55:35 -08:00
Ilya Laktyushin
34d9e98fad Update submodules 2019-03-09 18:53:32 +03:00
Ilya Laktyushin
4bc196d6db New GIF search design 2019-03-09 18:52:31 +03:00
Kevin
510000ee85 Correct attributes lookup for supplementary elements. (#1318) 2019-03-08 09:41:25 -08:00
Greg Bolsinga
dffe22f12d Fix CTLineRef leaks (#1386)
Found by Clang Static Analyzer:

~/Texture/Source/ASTextNode2.mm:663:39: warning: Potential leak of an object stored into 'truncationTokenLine'
      CTLineRef truncationTokenLine = CTLineCreateWithAttributedString((CFAttributedStringRef)_truncationAttributedText);
                                      ^
~/Texture/Source/ASTextNode2.mm:666:49: warning: Potential leak of an object stored into 'additionalTruncationTokenLine'
      CTLineRef additionalTruncationTokenLine = CTLineCreateWithAttributedString((CFAttributedStringRef)_additionalTruncationMessage);
                                                ^
2 warnings generated.
2019-03-08 09:40:51 -08:00
Michael Schneider
bb6102aa18 Add Yoga support to ASButtonNode (#1381)
* Add Yoga support to ASButtonNode

* Drop unowned ASLayoutElementStyle parameter

* Fix access of Yoga properties

* Move ASButtonNode Yoga logic to Category

* Update header
2019-03-08 08:32:57 -08:00
Kevin
aeb370ff13 Fix an issue where state change notifications can be sent mulitple times. (#1372)
Before the change: both - (void)setShouldInvertStrongReference:(BOOL)shouldInvertStrongReference and - (void)setNode:(ASDisplayNode *)node will call through [self setupReferencesWithNode:node]; which call the [node addInterfaceStateDelegate:self];
2019-03-08 08:27:49 -08:00
Kevin
d7eda2ec34 Assert for context creation failure during displayBlock. (#1373)
Nothing good can possibly happen if we continue without one.
2019-03-08 08:26:52 -08:00
Kevin
3089a3e3b0 Expose initial constrained size before layout in case anyone is interested later during the layout on the same thread. (#1377)
Optionally, clients are expected to clean it up after usage to avoid accessing outdated data.
2019-03-08 08:26:35 -08:00
Kevin
993172915a Correct View vs. Layer here (tho it doesn't make any difference) (#1378)
Older FBSnapshot versions, however, don't use VerifyViewOrLayer
2019-03-08 08:24:24 -08:00
Kevin
65061b9d3d Catch invalid sizes during yoga layout (#1376) 2019-03-08 08:24:08 -08:00
Garrett Moon
3547f5add3 Whoops, someone forgot an else! (#1385)
Luckily it seems this didn't cause huge memory bloat because there's
a check below that keeps the display flag from being set in low memory
conditions when the node is off the screen.
2019-03-08 08:18:11 -08:00
Huy Nguyen
d102ec81ee Experiment with different strategies for image downloader priority (#1349)
Right now when an image node enters preload state, we kick off an image request with the default priority. Then when it enters display state, we change the priority to "imminent" which is mapped to the default priority as well. This means that requests from preload and display nodes have the same priority and are put to the same pool. The right behavior would be that preload requests should have a lower priority from the beginning.

Another problem is that, due to the execution order of -didEnter(Preload|Display|Visible)State calls, a node may kick off a low priority request when it enters preload state even though it knows that it's also visible. By the time -didEnterVisibleState is called, the low priority request may have already been consumed and the download/data task won't pick up the new higher priority, or some work needs to be done to move it to another queue. A better behavior would be to always use the current interface state to determine the priority. This means that visible nodes will kick off high priority requests as soon as -didEnterPreloadState is called.

The last (and smaller) issue is that a node marks its request as preload/low priority as soon as it exits visible state. I'd argue that this is too agressive. It may be reasonble for nodes in the trailing direction. Even so, we already handle this case by (almost always) have smaller trailing buffers. So this diff makes sure that nodes that exited visible state will have imminent/default priority if they remain in the display range.

All of these new behaviors are wrapped in an experiment and will be tested carefully before being rolled out.

* Add imports

* Fix build failure

* Encapsulate common logics into methods

* Address comments
2019-03-08 08:11:03 -08:00
Ilya Laktyushin
ca80cc40dc Added bounds transition 2019-03-08 18:33:53 +03:00
Peter
02e4a6776e MessageHistoryIndexHoleTable 2019-03-08 14:16:00 +00:00
overtake
75b527c4c8 Merge branch 'master' of https://gitlab.com/peter-iakovlev/postbox 2019-03-08 17:09:30 +04:00
overtake
19bb5a3bb3 Merge branch 'master' of https://gitlab.com/peter-iakovlev/telegramcore
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2019-03-08 17:09:09 +04:00
overtake
fad778a335 no message 2019-03-08 17:08:46 +04:00
Peter
36fe22074f Merge branch 'master' into holes 2019-03-08 11:23:55 +00:00
Peter
18557fa0f1 Update API 2019-03-08 11:23:18 +00:00
Peter
8d4a0aa127 Merge branch 'master' into holes 2019-03-08 11:22:54 +00:00
Peter
956557b894 Added support for sticker pack thumbnails 2019-03-08 11:22:49 +00:00
Peter
1c36f9c7a8 Cleanup 2019-03-08 10:20:18 +00:00
Peter
41d0837b32 Initial holes 2.0 support 2019-03-08 10:20:01 +00:00
Peter
bbbd50fbaf Initial holes 2.0 support 2019-03-08 10:18:29 +00:00