Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| b74af2628e |
2 changed files with 3 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ class NostrClientConnection:
|
|||
}
|
||||
|
||||
event = NostrEvent(**event_dict)
|
||||
# Set the size field from the size_bytes property
|
||||
event.size = event.size_bytes
|
||||
await self._handle_event(event)
|
||||
return []
|
||||
if message_type == NostrEventType.REQ:
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ class NostrEvent(BaseModel):
|
|||
tags: list[list[str]] = Field(default=[], no_database=True)
|
||||
content: str = ""
|
||||
sig: str
|
||||
size: int = 0
|
||||
|
||||
def nostr_dict(self) -> dict:
|
||||
_nostr_dict = dict(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue