Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Thread sides are incorrect for very old databases #437

Closed
ReagentX opened this issue Jan 15, 2025 · 0 comments
Closed

Thread sides are incorrect for very old databases #437

ReagentX opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
bug Something isn't working crate: database Related to the database crate

Comments

@ReagentX
Copy link
Owner

The default values for:

other_handle: row.get("other_handle").unwrap_or_default(),

and

share_direction: row.get("share_direction").unwrap_or(false),

Make this function resolve incorrectly:

/// `true` if the message was sent by the database owner, else `false`
pub fn is_from_me(&self) -> bool {
self.is_from_me || self.other_handle != 0 && !self.share_direction
}

@ReagentX ReagentX added bug Something isn't working crate: database Related to the database crate labels Jan 15, 2025
@ReagentX ReagentX self-assigned this Jan 15, 2025
ReagentX added a commit that referenced this issue Jan 15, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working crate: database Related to the database crate
Projects
No open projects
Development

No branches or pull requests

1 participant