Skip to content

Commit

Permalink
Release 1.4.8 (201)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis15yo committed Dec 8, 2023
1 parent 498c9db commit 0ec6643
Show file tree
Hide file tree
Showing 573 changed files with 60,765 additions and 36,549 deletions.
118 changes: 118 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Contributing

This document describes how you can contribute to Telegram-iOS. Please read it carefully.

**Table of Contents**

* [What contributions are accepted](#what-contributions-are-accepted)
* [Build instructions](#build-instructions)
* [Pull upstream changes into your fork regularly](#pull-upstream-changes-into-your-fork-regularly)
* [How to get your pull request accepted](#how-to-get-your-pull-request-accepted)
* [Keep your pull requests limited to a single issue](#keep-your-pull-requests-limited-to-a-single-issue)
* [Squash your commits to a single commit](#squash-your-commits-to-a-single-commit)
* [Don't mix code changes with whitespace cleanup](#dont-mix-code-changes-with-whitespace-cleanup)
* [Keep your code simple!](#keep-your-code-simple)
* [Test your changes!](#test-your-changes)
* [Write a good commit message](#write-a-good-commit-message)

## What contributions are accepted

We highly appreciate your contributions in the matter of fixing bugs and optimizing the Telegram-iOS source code and its documentation. In case of fixing the existing user experience please push to your fork and [submit a pull request][pr].

Wait for us. We try to review your pull requests as fast as possible.
If we find issues with your pull request, we may suggest some changes and improvements.

Unfortunately we **do not merge** any pull requests that have new feature implementations, translations to new languages and those which introduce any new user interface elements.

If you have a translations-related contribution, check out [Translations platform][translate].

Telegram-iOS is not a standalone application but a part of [Telegram project][telegram], so all the decisions about the features, languages, user experience, user interface and the design are made inside Telegram team, often according to some roadmap which is not public.

## Build instructions

See the [README.md][build_instructions] for details on the various build
environments.

## Pull upstream changes into your fork regularly

Telegram-iOS is advancing quickly. It is therefore critical that you pull upstream changes into your fork on a regular basis. Nothing is worse than putting in a days of hard work into a pull request only to have it rejected because it has diverged too far from upstream.

To pull in upstream changes:

git remote add upstream https://github.com/TelegramMessenger/Telegram-iOS.git
git fetch upstream master

Check the log to be sure that you actually want the changes, before merging:

git log upstream/master

Then rebase your changes on the latest commits in the `master` branch:

git rebase upstream/master

After that, you have to force push your commits:

git push --force

For more info, see [GitHub Help][help_fork_repo].

## How to get your pull request accepted

We want to improve Telegram-iOS with your contributions. But we also want to provide a stable experience for our users and the community. Follow these rules and you should succeed without a problem!

### Keep your pull requests limited to a single issue

Pull requests should be as small/atomic as possible. Large, wide-sweeping changes in a pull request will be **rejected**, with comments to isolate the specific code in your pull request. Some examples:

* If you are making spelling corrections in the docs, don't modify other files.
* If you are adding new functions don't '*cleanup*' unrelated functions. That cleanup belongs in another pull request.

#### Squash your commits to a single commit

To keep the history of the project clean, you should make one commit per pull request.
If you already have multiple commits, you can add the commits together (squash them) with the following commands in Git Bash:

1. Open `Git Bash` (or `Git Shell`)
2. Enter following command to squash the recent {N} commits: `git reset --soft HEAD~{N} && git commit` (replace `{N}` with the number of commits you want to squash)
3. Press <kbd>i</kbd> to get into Insert-mode
4. Enter the commit message of the new commit
5. After adding the message, press <kbd>ESC</kbd> to get out of the Insert-mode
6. Write `:wq` and press <kbd>Enter</kbd> to save the new message or write `:q!` to discard your changes
7. Enter `git push --force` to push the new commit to the remote repository

For example, if you want to squash the last 5 commits, use `git reset --soft HEAD~5 && git commit`

### Don't mix code changes with whitespace cleanup

If you change two lines of code and correct 200 lines of whitespace issues in a file the diff on that pull request is functionally unreadable and will be **rejected**. Whitespace cleanups need to be in their own pull request.

### Keep your code simple!

Please keep your code as clean and straightforward as possible.
Furthermore, the pixel shortage is over. We want to see:

* `opacity` instead of `o`
* `placeholder` instead of `ph`
* `myFunctionThatDoesThings()` instead of `mftdt()`

### Test your changes!

Before you submit a pull request, please test your changes. Verify that Telegram-iOS still works and your changes don't cause other issue or crashes.

### Write a good commit message

* Explain why you make the changes. [More infos about a good commit message.][commit_message]

* If you fix an issue with your commit, please close the issue by [adding one of the keywords and the issue number][closing-issues-via-commit-messages] to your commit message.

For example: `Fix #545`

[//]: # (LINKS)
[telegram]: https://telegram.org/
[help_fork_repo]: https://help.github.com/articles/fork-a-repo/
[help_change_commit_message]: https://help.github.com/articles/changing-a-commit-message/
[commit_message]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
[pr]: https://github.com/TelegramMessenger/Telegram-iOS/compare
[build_instructions]: https://github.com/TelegramMessenger/Telegram-iOS#quick-compilation-guide
[closing-issues-via-commit-messages]: https://help.github.com/articles/closing-issues-via-commit-messages/
[translate]: https://translations.telegram.org
3 changes: 2 additions & 1 deletion Nicegram/NGUI/Sources/NicegramSettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import NGWebUtils
import NGAiChatUI
import NGCardUI
import NGAppCache
import NGCore
import var NGCoreUI.strings
import NGDoubleBottom
import NGQuickReplies
Expand Down Expand Up @@ -543,7 +544,7 @@ private enum NicegramSettingsControllerEntry: ItemListNodeEntry {
return ItemListSectionHeaderItem(presentationData: presentationData, text: text, sectionId: section)
case let .unblock(text, url):
return ItemListActionItem(presentationData: presentationData, title: text, kind: .neutral, alignment: .natural, sectionId: section, style: .blocks) {
UIApplication.shared.openURL(url)
CoreContainer.shared.urlOpener().open(url)
}
case let .Account(text):
return ItemListSectionHeaderItem(presentationData: presentationData, text: text, sectionId: section)
Expand Down
10 changes: 5 additions & 5 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"location" : "[email protected]:mobyrix/nicegram-assistant-ios.git",
"state" : {
"branch" : "develop",
"revision" : "c3686ba5c4f4ad5eb0273bc9dfd5784e0971a5a2"
"revision" : "35b2c2c88c8d2cb3d25cfa95e15e588f90578994"
}
},
{
Expand All @@ -59,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/SDWebImage/SDWebImage.git",
"state" : {
"revision" : "1b9a2e902cbde5fdf362faa0f4fd76ea74d74305",
"version" : "5.18.5"
"revision" : "0383fd49fe4d9ae43f150f24693550ebe6ef0d14",
"version" : "5.18.6"
}
},
{
Expand All @@ -86,8 +86,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41",
"version" : "1.3.0"
}
},
{
Expand Down
8 changes: 4 additions & 4 deletions Telegram/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ swift_library(
"//submodules/DrawingUI:DrawingUIResources",
"//submodules/TelegramUI:TelegramUIResources",
"//submodules/TelegramUI:TelegramUIAssets",
"//submodules/TelegramUI/Components/Calls/CallScreen:Assets",
":GeneratedPresentationStrings/Resources/PresentationStrings.data",
":GoogleService-Info",
] + NGRESOURCES,
Expand Down Expand Up @@ -2079,12 +2080,11 @@ xcodeproj(
"Debug": {
"//command_line_option:compilation_mode": "dbg",
},
#"Release": {
# "//command_line_option:compilation_mode": "opt",
#},
"Release": {
"//command_line_option:compilation_mode": "opt",
},
},
default_xcode_configuration = "Debug"

)

# Temporary targets used to simplify webrtc build tests
Expand Down
Binary file added Telegram/Telegram-iOS/Resources/Transcribe.tgs
Binary file not shown.
132 changes: 132 additions & 0 deletions Telegram/Telegram-iOS/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -10464,3 +10464,135 @@ Sorry for the inconvenience.";
"BoostGift.StartConfirmation.Start" = "Start";

"Channel.Info.Stats" = "Statistics and Boosts";

"BoostGift.StartConfirmation.Title" = "Start Giveaway";
"BoostGift.StartConfirmation.Text" = "Are you sure you want to start giveaway now?";
"BoostGift.StartConfirmation.Start" = "Start";

"Channel.Info.Stats" = "Statistics and Boosts";

"Conversation.FreeTranscriptionLimitTooltip_1" = "You have **%@** free voice transcription left this week.";
"Conversation.FreeTranscriptionLimitTooltip_any" = "You have **%@** free voice transcriptions left this week.";

"Conversation.FreeTranscriptionCooldownTooltip_1" = "You have used all your **%@** free transcription this week.";
"Conversation.FreeTranscriptionCooldownTooltip_any" = "You have used all your **%@** free transcriptions this week.";
"Conversation.FreeTranscriptionWaitOrSubscribe" = "Wait until **%@** to use it again or subscribe to [Telegram Premium]() now.";

"Notification.GiveawayResults_1" = "**%@** winner of the giveaway was randomly selected by Telegram and received their gift link in a private message.";
"Notification.GiveawayResults_any" = "**%@** winners of the giveaway were randomly selected by Telegram and received their gift links in private messages.";

"Notification.GiveawayResultsNoWinners_1" = "Due to the giveaway terms, no winners could be selected by Telegram, a gift link was forwarded to channel administrators.";
"Notification.GiveawayResultsNoWinners_any" = "Due to the giveaway terms, no winners could be selected by Telegram, all **%@** gift links were forwarded to channel administrators.";

"Notification.GiveawayResultsMixedWinners_1" = "**%@** winner of the giveaway was randomly selected by Telegram and received their gift link in a private message.";
"Notification.GiveawayResultsMixedWinners_any" = "**%@** winners of the giveaway were randomly selected by Telegram and received their gift links in private messages.";
"Notification.GiveawayResultsMixedUnclaimed_1" = "**%@** undistributed gift link was forwarded to channel administrators";
"Notification.GiveawayResultsMixedUnclaimed_any" = "**%@** undistributed gift links were forwarded to channel administrators";

"Chat.Giveaway.DeleteConfirmation.Title" = "Do you want to delete the Giveaway Announcement?";
"Chat.Giveaway.DeleteConfirmation.Text" = "Deleting this message won't cancel the giveaway - the winners will still be selected on **%@**.\n\nOnce deleted, the Giveaway Announcement cannot be recovered.";

"Chat.SimilarChannels" = "Similar Channels";
"Chat.SimilarChannels.Join" = "Join";
"Chat.SimilarChannels.JoinedChannel" = "You joined channel **%@**.";
"Chat.SimilarChannels.MoreChannels" = "More Channels";

"Wallpaper.ApplyForMe" = "Apply for Me";
"Wallpaper.ApplyForBoth" = "Apply for Me and %@";

"Premium.VoiceToText.Proceed" = "About Telegram Premium";
"Premium.Wallpaper.Proceed" = "About Telegram Premium";
"Premium.Colors.Proceed" = "About Telegram Premium";

"Notification.YouChangedWallpaperBoth" = "You set a new wallpaper for %@ and you.";

"Stats.ReactionsByEmotionTitle" = "REACTIONS BY EMOTION";
"Stats.StoryInteractionsTitle" = "STORIES INTERACTIONS";
"Stats.StoryReactionsByEmotionTitle" = "STORIES REACTIONS BY EMOTION";

"Stats.MessageReactionsTitle" = "REACTIONS";

"MediaEditor.RemoveVideo" = "Remove Video";

"Conversation.LaunchApp" = "LAUNCH APP";

"Message.AdSponsoredLabel" = "Sponsored";
"Message.AdRecommendedLabel" = "Recommended";

"Stats.StoryTitle" = "Story Statistics";

"Channel.Info.Settings" = "Channel Settings";

"Story.Context.ViewStats" = "View Statistics";

"Share.RepostStory" = "Repost\nStory";

"PeerInfo.PaneRecommended" = "Similar Channels";

"Story.ViewList.ContextSortReposts" = "Reposts First";

"ShortTime.JustNow" = "now";
"ShortTime.MinutesAgo_1" = "%@m";
"ShortTime.MinutesAgo_any" = "%@m";
"ShortTime.HoursAgo_1" = "%@h";
"ShortTime.HoursAgo_any" = "%@h";
"ShortTime.AtDate" = "%@";
"ShortTime.AtPreciseDate" = "%@ at %@";

"Stats.Message.Reactions" = "Reactions";
"Stats.ReactionsPerPost" = "Reactions Per Post";
"Stats.ViewsPerStory" = "Views Per Story";
"Stats.SharesPerStory" = "Shares Per Story";
"Stats.ReactionsPerStory" = "Reactions Per Story";

"Channel.SimilarChannels.ShowMore" = "Show More Channels";
"Channel.SimilarChannels.ShowMoreInfo" = "Subscribe to [Telegram Premium]()\nto unlock up to **100** similar channels.";

"Premium.Colors" = "Name and Profile Colors";
"Premium.ColorsInfo" = "Choose a color and logo for your profile and replies to your messages.";

"Premium.Wallpapers" = "Wallpapers for Both Sides";
"Premium.WallpapersInfo" = "Set custom wallpapers for you and your chat partner.";

"MediaEditor.VideoRemovalConfirmation" = "Are you sure you want to delete video message?";
"MediaEditor.HoldToRecordVideo" = "Hold to record video";

"Chat.ChannelRecommendation.PremiumTooltip" = "Subcribe to [Telegram Premium]() to unlock up to **100** channels.";

"Story.ForwardAuthorHiddenTooltip" = "The account was hidden by the user";

"Premium.Limits.RecommendedChannels" = "Similar Channels";
"Premium.Limits.RecommendedChannelsInfo" = "View up to 100 similar channels.";

"ChannelBoost.CustomReactions" = "Custom Reactions";
"ChannelBoost.CustomReactionsText" = "Your channel needs to reach **Level %1$@** to add **%2$@** custom emoji as reactions.\n\nAsk your **Premium** subscribers to boost your channel with this link:";

"Settings.YourColor" = "Your Color";

"ChannelReactions.Reactions" = "Reactions";
"ChannelReactions.UnsavedChangesAlertTitle" = "Unsaved Changes";
"ChannelReactions.UnsavedChangesAlertText" = "You have changed the list of reactions. Apply changes?";
"ChannelReactions.UnsavedChangesAlertDiscard" = "Discard";
"ChannelReactions.UnsavedChangesAlertApply" = "Apply";
"ChannelReactions.ToastMaxReactionsReached" = "You can select at most 100 reactions.";
"ChannelReactions.ToastLevelBoostRequired" = "Your channel needs to reach **Level %1$@** to add **%2$@** custom emoji as reactions.**";
"ChannelReactions.GeneralInfoLabel" = "You can add emoji from any emoji pack as a reaction.";
"ChannelReactions.ReactionsSectionTitle" = "AVAILABLE REACTIONS";
"ChannelReactions.ReactionsInfoLabel" = "You can also [create your own]() emoji packs and use them.";
"ChannelReactions.SaveAction" = "Update Reactions";
"ChannelReactions.LevelRequiredLabel" = "Level %1$@ Required";

"ProfileColorSetup.ResetAction" = "Reset Profile Color";
"ProfileColorSetup.IconSectionTitle" = "ADD ICON TO PROFILE";
"ProfileColorSetup.AccountColorInfoLabel" = "Choose a color for your profile";
"ProfileColorSetup.ChannelColorInfoLabel" = "Choose a color for channel's profile";
"ProfileColorSetup.TitleName" = "Name";
"ProfileColorSetup.TitleProfile" = "Profile";
"ProfileColorSetup.TitleChannelColor" = "Set Channel Color";
"ProfileColorSetup.ToastAccountColorUpdated" = "Your color has been updated.";

"Chat.TopicIsClosedLabel" = "Topic \"%1$@\" is closed";
"Chat.InputPlaceholderReplyInTopic" = "Reply in %1$@";
"Chat.InputPlaceholderMessageInTopic" = "Message in %1$@";

"Chat.Reactions.MultiplePremiumTooltip" = "You can set multiple reactions with [Telegram Premium]().";
Loading

0 comments on commit 0ec6643

Please sign in to comment.