mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 09:45:19 +00:00
user bottom sheet (#285)
* wip sheet * longpress * block wip * blocking works
This commit is contained in:
@@ -68,7 +68,8 @@ class ChatViewModel(
|
||||
messageManager = messageManager,
|
||||
privateChatManager = privateChatManager,
|
||||
meshDelegateHandler = meshDelegateHandler,
|
||||
coroutineScope = viewModelScope
|
||||
coroutineScope = viewModelScope,
|
||||
dataManager = dataManager
|
||||
)
|
||||
|
||||
// Expose state through LiveData (maintaining the same interface)
|
||||
@@ -133,6 +134,7 @@ class ChatViewModel(
|
||||
dataManager.loadFavorites()
|
||||
state.setFavoritePeers(dataManager.favoritePeers.toSet())
|
||||
dataManager.loadBlockedUsers()
|
||||
dataManager.loadGeohashBlockedUsers()
|
||||
|
||||
// Log all favorites at startup
|
||||
dataManager.logAllFavorites()
|
||||
@@ -583,6 +585,13 @@ class ChatViewModel(
|
||||
nostrGeohashService.selectLocationChannel(channel)
|
||||
}
|
||||
|
||||
/**
|
||||
* Block a user in geohash channels by their nickname
|
||||
*/
|
||||
fun blockUserInGeohash(targetNickname: String) {
|
||||
nostrGeohashService.blockUserInGeohash(targetNickname)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user