mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 15:50:54 +02:00
Keeping subscription names small to please some relays.
This commit is contained in:
@@ -146,7 +146,7 @@ abstract class NostrDataSource<T>(val debugName: String) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun requestNewChannel(onEOSE: ((Long) -> Unit)? = null): Channel {
|
fun requestNewChannel(onEOSE: ((Long) -> Unit)? = null): Channel {
|
||||||
val newChannel = Channel(debugName+UUID.randomUUID().toString().substring(0,4), onEOSE)
|
val newChannel = Channel(UUID.randomUUID().toString().substring(0,4), onEOSE)
|
||||||
channels = channels + Pair(newChannel.id, newChannel)
|
channels = channels + Pair(newChannel.id, newChannel)
|
||||||
return newChannel
|
return newChannel
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user