Compare commits
1 Commits
tyiu/notif
...
tyiu/follo
| Author | SHA1 | Date | |
|---|---|---|---|
|
7d99147971
|
18
CHANGELOG.md
18
CHANGELOG.md
@@ -1,21 +1,3 @@
|
|||||||
## [1.5-5] - 2023-06-24
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
|
|
||||||
- Remove note zaps to fit apples appstore guidelines
|
|
||||||
- Fix zap sheet popping (William Casarin)
|
|
||||||
- Fix CustomizeZapView from randomly disappearing (William Casarin)
|
|
||||||
- Fix "zapped your profile" strings to say "zapped you" (Terry Yiu)
|
|
||||||
- Fix reconnect loop issues on iOS17 (William Casarin)
|
|
||||||
- Fix some more thread jankiness (William Casarin)
|
|
||||||
- Fix spelling of Nostr to use Titlecase instead of lowercase (Terry Yiu)
|
|
||||||
- Rename all usages of the term Post as a noun to Note to conform to the Nostr spec (Terry Yiu)
|
|
||||||
- Fix text cutoff on login with npub (gladiusKatana)
|
|
||||||
- Fix hangs due to video player (William Casarin)
|
|
||||||
|
|
||||||
|
|
||||||
[1.5-5]: https://github.com/damus-io/damus/releases/tag/v1.5-5
|
|
||||||
|
|
||||||
## [1.5-2] - 2023-05-30
|
## [1.5-2] - 2023-05-30
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -2236,7 +2236,7 @@
|
|||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = damus/damus.entitlements;
|
CODE_SIGN_ENTITLEMENTS = damus/damus.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 6;
|
CURRENT_PROJECT_VERSION = 4;
|
||||||
DEVELOPMENT_ASSET_PATHS = "\"damus/Preview Content\"";
|
DEVELOPMENT_ASSET_PATHS = "\"damus/Preview Content\"";
|
||||||
DEVELOPMENT_TEAM = XK7H4JAB3D;
|
DEVELOPMENT_TEAM = XK7H4JAB3D;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
@@ -2284,7 +2284,7 @@
|
|||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = damus/damus.entitlements;
|
CODE_SIGN_ENTITLEMENTS = damus/damus.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 6;
|
CURRENT_PROJECT_VERSION = 4;
|
||||||
DEVELOPMENT_ASSET_PATHS = "\"damus/Preview Content\"";
|
DEVELOPMENT_ASSET_PATHS = "\"damus/Preview Content\"";
|
||||||
DEVELOPMENT_TEAM = XK7H4JAB3D;
|
DEVELOPMENT_TEAM = XK7H4JAB3D;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
|
|||||||
@@ -310,14 +310,13 @@ struct ContentView: View {
|
|||||||
if selected_timeline == .search {
|
if selected_timeline == .search {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
//isFilterVisible.toggle()
|
//isFilterVisible.toggle()
|
||||||
present_sheet(.filter)
|
self.active_sheet = .filter
|
||||||
}) {
|
}) {
|
||||||
// checklist, checklist.checked, lisdt.bullet, list.bullet.circle, line.3.horizontal.decrease..., line.3.horizontail.decrease
|
// checklist, checklist.checked, lisdt.bullet, list.bullet.circle, line.3.horizontal.decrease..., line.3.horizontail.decrease
|
||||||
Label(NSLocalizedString("Filter", comment: "Button label text for filtering relay servers."), image: "filter")
|
Label(NSLocalizedString("Filter", comment: "Button label text for filtering relay servers."), image: "filter")
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
//.contentShape(Rectangle())
|
//.contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1164,15 +1164,13 @@ func process_local_notification(damus_state: DamusState, event ev: NostrEvent) {
|
|||||||
create_local_notification(profiles: damus_state.profiles, notify: notify )
|
create_local_notification(profiles: damus_state.profiles, notify: notify )
|
||||||
}
|
}
|
||||||
} else if type == .boost && damus_state.settings.repost_notification, let inner_ev = ev.get_inner_event(cache: damus_state.events) {
|
} else if type == .boost && damus_state.settings.repost_notification, let inner_ev = ev.get_inner_event(cache: damus_state.events) {
|
||||||
let content = NSAttributedString(render_note_content(ev: inner_ev, profiles: damus_state.profiles, privkey: damus_state.keypair.privkey).content.attributed).string
|
let notify = LocalNotification(type: .repost, event: ev, target: inner_ev, content: inner_ev.content)
|
||||||
let notify = LocalNotification(type: .repost, event: ev, target: inner_ev, content: content)
|
|
||||||
create_local_notification(profiles: damus_state.profiles, notify: notify)
|
create_local_notification(profiles: damus_state.profiles, notify: notify)
|
||||||
} else if type == .like && damus_state.settings.like_notification,
|
} else if type == .like && damus_state.settings.like_notification,
|
||||||
let evid = ev.referenced_ids.last?.ref_id,
|
let evid = ev.referenced_ids.last?.ref_id,
|
||||||
let liked_event = damus_state.events.lookup(evid)
|
let liked_event = damus_state.events.lookup(evid)
|
||||||
{
|
{
|
||||||
let content = NSAttributedString(render_note_content(ev: liked_event, profiles: damus_state.profiles, privkey: damus_state.keypair.privkey).content.attributed).string
|
let notify = LocalNotification(type: .like, event: ev, target: liked_event, content: liked_event.content)
|
||||||
let notify = LocalNotification(type: .like, event: ev, target: liked_event, content: content)
|
|
||||||
create_local_notification(profiles: damus_state.profiles, notify: notify)
|
create_local_notification(profiles: damus_state.profiles, notify: notify)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -425,7 +425,7 @@ enum UrlType {
|
|||||||
case .image(let url):
|
case .image(let url):
|
||||||
return url
|
return url
|
||||||
case .video:
|
case .video:
|
||||||
return nil
|
return url
|
||||||
}
|
}
|
||||||
case .link:
|
case .link:
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -30,10 +30,12 @@ struct TimelineView: View {
|
|||||||
.redacted(reason: loading ? .placeholder : [])
|
.redacted(reason: loading ? .placeholder : [])
|
||||||
.shimmer(loading)
|
.shimmer(loading)
|
||||||
.disabled(loading)
|
.disabled(loading)
|
||||||
|
/*
|
||||||
.background(GeometryReader { proxy -> Color in
|
.background(GeometryReader { proxy -> Color in
|
||||||
handle_scroll_queue(proxy, queue: self.events)
|
handle_scroll_queue(proxy, queue: self.events)
|
||||||
return Color.clear
|
return Color.clear
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
.buttonStyle(BorderlessButtonStyle())
|
.buttonStyle(BorderlessButtonStyle())
|
||||||
.coordinateSpace(name: "scroll")
|
.coordinateSpace(name: "scroll")
|
||||||
|
|||||||
Reference in New Issue
Block a user