parent
6d80a94de3
commit
45d70e459e
@ -84,7 +84,6 @@ import java.util.Stack;
|
||||
|
||||
import tw.nekomimi.nekogram.ui.MessageHelper;
|
||||
import tw.nekomimi.nekogram.NekoConfig;
|
||||
import xyz.nextalone.nagram.NaConfig;
|
||||
|
||||
public class DialogCell extends BaseCell {
|
||||
|
||||
@ -1099,9 +1098,9 @@ public class DialogCell extends BaseCell {
|
||||
if (chat != null && chat.id > 0 && fromChat == null && (!ChatObject.isChannel(chat) || ChatObject.isMegagroup(chat))) {
|
||||
if (message.isOutOwner()) {
|
||||
messageNameString = LocaleController.getString("FromYou", R.string.FromYou);
|
||||
// NekoX: fix show forwarded name as sender
|
||||
} else if (message != null && message.messageOwner.fwd_from != null && message.messageOwner.fwd_from.from_name != null && !NaConfig.INSTANCE.getShowForwarderName().Bool()) {
|
||||
messageNameString = message.messageOwner.fwd_from.from_name;
|
||||
// NekoX: fix show forwarded name as sender
|
||||
/*} else if (message != null && message.messageOwner.fwd_from != null && message.messageOwner.fwd_from.from_name != null) {
|
||||
messageNameString = message.messageOwner.fwd_from.from_name;*/
|
||||
} else if (fromUser != null) {
|
||||
if (useForceThreeLines || SharedConfig.useThreeLinesLayout) {
|
||||
if (UserObject.isDeleted(fromUser)) {
|
||||
|
@ -123,7 +123,6 @@ public class NekoChatSettingsActivity extends BaseFragment implements Notificati
|
||||
}, null));
|
||||
private final AbstractConfigCell scrollableChatPreviewRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getScrollableChatPreview()));
|
||||
private final AbstractConfigCell dateOfForwardMsgRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getDateOfForwardedMsg()));
|
||||
private final AbstractConfigCell showForwarderNameRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getShowForwarderName()));
|
||||
private final AbstractConfigCell divider1 = cellGroup.appendCell(new ConfigCellDivider());
|
||||
private final AbstractConfigCell header2 = cellGroup.appendCell(new ConfigCellHeader(LocaleController.getString("AutoDownload")));
|
||||
private final AbstractConfigCell win32Row = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.disableAutoDownloadingWin32Executable));
|
||||
|
@ -172,11 +172,6 @@ object NaConfig {
|
||||
ConfigItem.configTypeBool,
|
||||
false
|
||||
)
|
||||
val ShowForwarderName = addConfig(
|
||||
"ShowForwarderName",
|
||||
ConfigItem.configTypeBool,
|
||||
false
|
||||
)
|
||||
|
||||
fun addConfig(
|
||||
k: String,
|
||||
|
@ -31,5 +31,4 @@
|
||||
<string name="PhotoCopied">图片已复制到剪贴板</string>
|
||||
<string name="ToTheBeginning">回到顶部</string>
|
||||
<string name="DateOfForwardedMsg">显示转发消息日期</string>
|
||||
<string name="ShowForwarderName">显示转发者名字</string>
|
||||
</resources>
|
||||
|
@ -31,5 +31,4 @@
|
||||
<string name="PhotoCopied">Photo copied to Clipboard</string>
|
||||
<string name="ToTheBeginning">To the beginning</string>
|
||||
<string name="DateOfForwardedMsg">Show date of forward message</string>
|
||||
<string name="ShowForwarderName">Show forwarder name</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user