mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-09-22 20:30:41 +02:00
Update Ghostgram features
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
filegroup(
|
||||
name = "SGDoubleTapMessageAction",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
import Foundation
|
||||
import SGSimpleSettings
|
||||
import Postbox
|
||||
import TelegramCore
|
||||
|
||||
|
||||
func sgDoubleTapMessageAction(incoming: Bool, message: Message) -> String {
|
||||
if incoming {
|
||||
return SGSimpleSettings.MessageDoubleTapAction.default.rawValue
|
||||
} else {
|
||||
return SGSimpleSettings.shared.messageDoubleTapActionOutgoing
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user